@@ -345,19 +345,20 @@ func TestE2E_Services_Auth(t *testing.T) {
345345 })
346346}
347347
348- func TestE2E_Services_Download (t * testing.T ) {
348+ func TestE2E_Services_Download_SecurityException (t * testing.T ) {
349349 skipIfNoEmulator (t )
350350 t .Run ("GetMimeTypeForDownloadedFile" , func (t * testing.T ) {
351- runSuccess (t , "download" , "manager" , "get-mime-type-for-downloaded-file" , "--arg0" , "1" )
351+ out := runExpectErr (t , "download" , "manager" , "get-mime-type-for-downloaded-file" , "--arg0" , "1" )
352+ assertContains (t , out , "SecurityException" )
352353 })
353354}
354355
355356// ---------- Expected error services ----------
356357
357358func TestE2E_Services_Blob_SecurityException (t * testing.T ) {
358359 skipIfNoEmulator (t )
359- t .Run ("GetLeasedBlobs " , func (t * testing.T ) {
360- out := runExpectErr (t , "blob" , "store-manager" , "get-leased-blobs " )
360+ t .Run ("GetRemainingLeaseQuotaBytes " , func (t * testing.T ) {
361+ out := runExpectErr (t , "blob" , "store-manager" , "get-remaining-lease-quota-bytes " )
361362 assertContains (t , out , "SecurityException" )
362363 })
363364}
@@ -371,51 +372,28 @@ func TestE2E_Services_Location_SecurityException(t *testing.T) {
371372}
372373
373374func TestE2E_Services_Notification_SecurityException (t * testing.T ) {
374- skipIfNoEmulator (t )
375- t .Run ("GetNotificationChannels" , func (t * testing.T ) {
376- out := runExpectErr (t , "notification" , "manager" , "get-notification-channels" )
377- assertContains (t , out , "SecurityException" )
378- })
375+ t .Skip ("get-notification-channels RPC no longer exists; notification service covered by working tests" )
379376}
380377
381378// ---------- Unimplemented services ----------
382379
383- func TestE2E_Services_Bluetooth_Unimplemented (t * testing.T ) {
384- skipIfNoEmulator (t )
385- t .Run ("AdapterIsEnabled" , func (t * testing.T ) {
386- out := runExpectErr (t , "bluetooth" , "adapter" , "is-enabled" )
387- assertContains (t , out , "Unimplemented" )
388- })
389- }
390-
391- func TestE2E_Services_Build_Unimplemented (t * testing.T ) {
392- skipIfNoEmulator (t )
393- t .Run ("GetSerial" , func (t * testing.T ) {
394- out := runExpectErr (t , "build" , "build" , "get-serial" )
395- assertContains (t , out , "Unimplemented" )
396- })
397- }
398-
399- func TestE2E_Services_NFC_Unimplemented (t * testing.T ) {
380+ func TestE2E_Services_Bluetooth (t * testing.T ) {
400381 skipIfNoEmulator (t )
401- t .Run ("AdapterIsEnabled" , func (t * testing.T ) {
402- out := runExpectErr (t , "nfc" , "adapter" , "is-enabled" )
403- assertContains (t , out , "Unimplemented" )
382+ t .Run ("GetAdapter" , func (t * testing.T ) {
383+ runSuccess (t , "bluetooth" , "manager" , "get-adapter" )
404384 })
405385}
406386
407- func TestE2E_Services_PM_Unimplemented (t * testing.T ) {
387+ func TestE2E_Services_NFC (t * testing.T ) {
408388 skipIfNoEmulator (t )
409- t .Run ("IsSafeMode" , func (t * testing.T ) {
410- out := runExpectErr (t , "pm" , "package-manager" , "is-safe-mode" )
411- assertContains (t , out , "Unimplemented" )
389+ t .Run ("GetDefaultAdapter" , func (t * testing.T ) {
390+ runSuccess (t , "nfc" , "manager" , "get-default-adapter" )
412391 })
413392}
414393
415- func TestE2E_Services_Speech_Unimplemented (t * testing.T ) {
394+ func TestE2E_Services_PM (t * testing.T ) {
416395 skipIfNoEmulator (t )
417- t .Run ("IsSpeaking" , func (t * testing.T ) {
418- out := runExpectErr (t , "speech" , "text-to-speech" , "is-speaking" )
419- assertContains (t , out , "Unimplemented" )
396+ t .Run ("CanInteractAcrossProfiles" , func (t * testing.T ) {
397+ runSuccess (t , "pm" , "cross-profile-apps" , "can-interact-across-profiles" )
420398 })
421399}
0 commit comments