/external/chromium_org/chrome/browser/media_galleries/ |
media_galleries_permissions_unittest.cc | 41 // for also resetting the ExtensionPrefs used by |gallery_prefs_| after 50 gallery_prefs_->SetExtensionPrefsForTesting(prefs()); 65 gallery_prefs_.reset(new MediaGalleriesPreferences(profile_.get())); 67 gallery_prefs_->EnsureInitialized(loop.QuitClosure()); 70 gallery_prefs_->SetExtensionPrefsForTesting(prefs()); 79 gallery_prefs_->SetGalleryPermissionInPrefs(extension1_id_, 1, false); 83 gallery_prefs_->SetGalleryPermissionInPrefs(extension1_id_, 2, true); 87 gallery_prefs_->SetGalleryPermissionInPrefs(extension1_id_, 2, false); 91 gallery_prefs_->SetGalleryPermissionInPrefs(extension2_id_, 1, true); 92 gallery_prefs_->SetGalleryPermissionInPrefs(extension2_id_, 3, true) 154 scoped_ptr<MediaGalleriesPreferences> gallery_prefs_; member in class:MediaGalleriesPermissionsTest [all...] |
gallery_watch_manager_unittest.cc | 57 gallery_prefs_(NULL), 73 gallery_prefs_ = 76 gallery_prefs_->EnsureInitialized(loop.QuitClosure()); 98 EXPECT_FALSE(gallery_prefs_->LookUpGalleryByPath(path, &gallery_info)); 100 gallery_prefs_->AddGallery(gallery_info.device_id, 113 EXPECT_TRUE(gallery_prefs_->SetGalleryPermissionForExtension( 124 MediaGalleriesPreferences* gallery_prefs() { return gallery_prefs_; } 180 MediaGalleriesPreferences* gallery_prefs_; member in class:component_updater::GalleryWatchManagerTest
|
media_galleries_scan_result_controller_unittest.cc | 57 gallery_prefs_.reset(new MediaGalleriesPreferences(profile_.get())); 59 gallery_prefs_->EnsureInitialized(loop.QuitClosure()); 76 gallery_prefs_.get(), 107 return gallery_prefs_.get(); 115 gallery_prefs_->LookUpGalleryByPath(MakeMediaGalleriesTestingPath(path), 117 return gallery_prefs_->AddGallery( 179 scoped_ptr<MediaGalleriesPreferences> gallery_prefs_; member in class:MediaGalleriesScanResultControllerTest
|
media_galleries_permission_controller_unittest.cc | 66 gallery_prefs_.reset(new MediaGalleriesPreferences(profile_.get())); 68 gallery_prefs_->EnsureInitialized(loop.QuitClosure()); 85 gallery_prefs_.get(), 111 return gallery_prefs_.get(); 164 scoped_ptr<MediaGalleriesPreferences> gallery_prefs_; member in class:MediaGalleriesPermissionControllerTest
|
media_scan_manager_unittest.cc | 115 gallery_prefs_ = 118 gallery_prefs_->EnsureInitialized(loop.QuitClosure()); 166 gallery_prefs_->LookUpGalleryByPath(full_path, &gallery_info); 167 return gallery_prefs_->AddGallery(gallery_info.device_id, 197 return gallery_prefs_; 201 return gallery_prefs_->known_galleries(); 292 MediaGalleriesPreferences* gallery_prefs_; member in class:MediaScanManagerTest
|
media_galleries_preferences_unittest.cc | 129 gallery_prefs_->known_galleries(); 161 gallery_prefs_.reset(new MediaGalleriesPreferences(profile_.get())); 163 gallery_prefs_->EnsureInitialized(loop.QuitClosure()); 168 gallery_prefs_->known_galleries(); 203 gallery_prefs_->known_galleries(); 213 EXPECT_FALSE(gallery_prefs_->NonAutoGalleryHasPermission(it->first)); 215 EXPECT_TRUE(gallery_prefs_->NonAutoGalleryHasPermission(it->first)); 224 gallery_prefs_->LookUpGalleriesByDeviceId(it->first); 229 gallery_prefs_->GalleriesForExtension(*all_permission_extension.get()); 233 gallery_prefs_->GalleriesForExtension 379 scoped_ptr<MediaGalleriesPreferences> gallery_prefs_; member in class:MediaGalleriesPreferencesTest [all...] |