Home
last modified time | relevance | path

Searched refs:extension2 (Results 1 – 25 of 33) sorted by relevance

12

/external/chromium_org/chrome/browser/chromeos/fileapi/
Dfile_access_permissions_unittest.cc18 std::string extension2("jkhdjkhkhsdkfhsdkhrterwmtermeter"); in TEST() local
25 EXPECT_FALSE(permissions.HasAccessPermission(extension2, good_dir)); in TEST()
26 EXPECT_FALSE(permissions.HasAccessPermission(extension2, good_file)); in TEST()
27 EXPECT_FALSE(permissions.HasAccessPermission(extension2, bad_file)); in TEST()
35 EXPECT_FALSE(permissions.HasAccessPermission(extension2, good_dir)); in TEST()
36 EXPECT_FALSE(permissions.HasAccessPermission(extension2, good_file)); in TEST()
37 EXPECT_FALSE(permissions.HasAccessPermission(extension2, bad_file)); in TEST()
42 permissions.GrantAccessPermission(extension2, good_dir); in TEST()
46 EXPECT_TRUE(permissions.HasAccessPermission(extension2, good_dir)); in TEST()
47 EXPECT_TRUE(permissions.HasAccessPermission(extension2, good_file)); in TEST()
[all …]
/external/chromium_org/chrome/browser/sync/test/integration/
Dtwo_client_extension_settings_and_app_settings_sync_test.cc30 const std::string& extension2) { in MutateSomeSettings() argument
49 SetExtensionSettings(test()->verifier(), extension2, settings0); in MutateSomeSettings()
50 SetExtensionSettings(test()->GetProfile(0), extension2, settings0); in MutateSomeSettings()
55 SetExtensionSettings(test()->verifier(), extension2, settings1); in MutateSomeSettings()
56 SetExtensionSettings(test()->GetProfile(1), extension2, settings1); in MutateSomeSettings()
77 const std::string& extension2) { in StartWithSameSettingsTest() argument
90 SetExtensionSettingsForAllProfiles(extension2, settings); in StartWithSameSettingsTest()
100 MutateSomeSettings(0, extension0, extension1, extension2); in StartWithSameSettingsTest()
106 MutateSomeSettings(1, extension0, extension1, extension2); in StartWithSameSettingsTest()
123 const std::string& extension2) { in StartWithDifferentSettingsTest() argument
[all …]
/external/chromium_org/extensions/browser/
Dinfo_map_unittest.cc59 scoped_refptr<Extension> extension2(CreateExtension("extension2")); in TEST_F() local
62 EXPECT_TRUE(extension2->HasOneRef()); in TEST_F()
67 info_map->AddExtension(extension2.get(), base::Time(), false, false); in TEST_F()
77 extension2->id(), extensions::UnloadedExtensionInfo::REASON_UNINSTALL); in TEST_F()
78 EXPECT_TRUE(extension2->HasOneRef()); in TEST_F()
90 scoped_refptr<Extension> extension2(CreateExtension("extension2")); in TEST_F() local
93 info_map->AddExtension(extension2.get(), base::Time(), false, false); in TEST_F()
97 EXPECT_EQ(extension2.get(), info_map->extensions().GetByID(extension2->id())); in TEST_F()
Dextension_registry_unittest.cc92 scoped_refptr<Extension> extension2 = test_util::CreateEmptyExtension("id2"); in TEST_F() local
104 registry.AddDisabled(extension2); in TEST_F()
/external/chromium_org/chrome/browser/extensions/
Dchrome_app_sorting_unittest.cc120 scoped_refptr<Extension> extension2 = prefs_.AddApp("page_ordinal_2"); in Initialize() local
122 prefs()->OnExtensionInstalled(extension2.get(), in Initialize()
127 app_sorting()->GetPageOrdinal(extension2->id()))); in Initialize()
172 scoped_prefs->UpdateExtensionPref(extension2()->id(), in Initialize()
175 scoped_prefs->UpdateExtensionPref(extension2()->id(), in Initialize()
190 ids.push_back(extension2()->id()); in Initialize()
203 app_sorting->GetAppLaunchOrdinal(extension2()->id()))); in Verify()
210 app_sorting->GetPageOrdinal(extension2()->id()))); in Verify()
317 app_sorting->SetAppLaunchOrdinal(extension2()->id(), repeated_ordinal_); in Initialize()
318 app_sorting->SetPageOrdinal(extension2()->id(), repeated_ordinal_); in Initialize()
[all …]
Dmenu_manager_unittest.cc151 Extension* extension2 = AddExtension("test2"); in TEST_F() local
152 MenuItem* item2other = CreateTestItemWithID(extension2, "id2"); in TEST_F()
153 ASSERT_TRUE(manager_.AddContextItem(extension2, item2other)); in TEST_F()
159 Extension* extension2 = AddExtension("2222"); in TEST_F() local
163 MenuItem* item2 = CreateTestItem(extension2); in TEST_F()
164 MenuItem* item2_child = CreateTestItemWithID(extension2, "2child"); in TEST_F()
165 MenuItem* item2_grandchild = CreateTestItem(extension2); in TEST_F()
173 ASSERT_TRUE(manager_.AddContextItem(extension2, item2)); in TEST_F()
409 Extension* extension2 = AddExtension("2222"); in TEST_F() local
410 MenuItem* item4 = CreateTestItem(extension2); in TEST_F()
[all …]
Dactive_script_controller_browsertest.cc366 const Extension* extension2 = CreateExtension(ALL_HOSTS, CONTENT_SCRIPT); in IN_PROC_BROWSER_TEST_F() local
367 ASSERT_TRUE(extension2); in IN_PROC_BROWSER_TEST_F()
369 ASSERT_NE(extension1->id(), extension2->id()); in IN_PROC_BROWSER_TEST_F()
384 EXPECT_TRUE(active_script_controller->WantsToRun(extension2)); in IN_PROC_BROWSER_TEST_F()
387 UnloadExtension(extension2->id()); in IN_PROC_BROWSER_TEST_F()
394 EXPECT_FALSE(active_script_controller->WantsToRun(extension2)); in IN_PROC_BROWSER_TEST_F()
Dprocess_management_browsertest.cc114 const extensions::Extension* extension2 = LoadExtension( in IN_PROC_BROWSER_TEST_F() local
116 ASSERT_TRUE(extension2); in IN_PROC_BROWSER_TEST_F()
117 GURL extension2_url = extension2->url(); in IN_PROC_BROWSER_TEST_F()
Dextension_toolbar_model_unittest.cc289 scoped_refptr<const Extension> extension2 = in TEST_F() local
291 ASSERT_TRUE(AddExtension(extension2)); in TEST_F()
296 EXPECT_EQ(extension2.get(), GetExtensionAtIndex(0u)); in TEST_F()
299 toolbar_model()->MoveExtensionIcon(extension2.get(), 0); in TEST_F()
302 EXPECT_EQ(extension2.get(), GetExtensionAtIndex(0u)); in TEST_F()
305 ASSERT_TRUE(RemoveExtension(extension2)); in TEST_F()
Dextension_garbage_collector_chromeos_unittest.cc178 scoped_refptr<Extension> extension2 = CreateExtension(kExtensionId2, "1.0", in TEST_F() local
181 extension2.get(), in TEST_F()
Dextension_prefs_unittest.h67 Extension* extension2() { return extension2_.get(); } in extension2() function
/external/chromium_org/chrome/common/extensions/manifest_tests/
Dextension_manifests_web_accessible_resources_unittest.cc21 scoped_refptr<Extension> extension2( in TEST_F() local
43 WebAccessibleResourcesInfo::HasWebAccessibleResources(extension2.get())); in TEST_F()
59 extension2.get(), "test")); in TEST_F()
Dextension_manifests_isolatedapp_unittest.cc28 scoped_refptr<Extension> extension2( in TEST_F() local
30 EXPECT_TRUE(AppIsolationInfo::HasIsolatedStorage(extension2.get())); in TEST_F()
Dextension_manifests_sandboxed_unittest.cc23 scoped_refptr<Extension> extension2( in TEST_F() local
52 CSPInfo::GetResourceContentSecurityPolicy(extension2.get(), "/test")); in TEST_F()
/external/protobuf/src/google/protobuf/
Dgenerated_message_reflection_unittest.cc287 const FieldDescriptor* extension2 = in TEST() local
293 EXPECT_EQ(extension2, in TEST()
294 reflection->FindKnownExtensionByNumber(extension2->number())); in TEST()
312 const FieldDescriptor* extension2 = in TEST() local
318 EXPECT_EQ(extension2, in TEST()
319 reflection->FindKnownExtensionByName(extension2->full_name())); in TEST()
/external/chromium_org/third_party/protobuf/src/google/protobuf/
Dgenerated_message_reflection_unittest.cc335 const FieldDescriptor* extension2 = in TEST() local
341 EXPECT_EQ(extension2, in TEST()
342 reflection->FindKnownExtensionByNumber(extension2->number())); in TEST()
360 const FieldDescriptor* extension2 = in TEST() local
366 EXPECT_EQ(extension2, in TEST()
367 reflection->FindKnownExtensionByName(extension2->full_name())); in TEST()
/external/chromium_org/chrome/common/extensions/
Dextension_file_util_unittest.cc54 scoped_refptr<Extension> extension2(file_util::LoadExtension( in TEST_F() local
56 EXPECT_FALSE(extension2.get()); in TEST_F()
/external/chromium_org/chrome/common/extensions/manifest_handlers/
Dcontent_scripts_manifest_unittest.cc77 scoped_refptr<Extension> extension2 = in TEST_F() local
84 ContentScriptsInfo::GetContentScripts(extension2.get()); in TEST_F()
/external/chromium_org/chrome/browser/policy/cloud/
Dcomponent_cloud_policy_browsertest.cc280 scoped_refptr<const extensions::Extension> extension2 = in IN_PROC_BROWSER_TEST_F() local
282 ASSERT_TRUE(extension2.get()); in IN_PROC_BROWSER_TEST_F()
283 ASSERT_EQ(kTestExtension2, extension2->id()); in IN_PROC_BROWSER_TEST_F()
/external/chromium_org/remoting/host/
Dclient_session_unittest.cc719 FakeExtension extension2("ext2", ""); in TEST_F() local
720 extensions_.push_back(&extension2); in TEST_F()
725 extension2.set_steal_video_capturer(true); in TEST_F()
768 EXPECT_TRUE(extension2.was_instantiated()); in TEST_F()
769 EXPECT_FALSE(extension2.has_handled_message()); in TEST_F()
770 EXPECT_TRUE(extension2.has_wrapped_video_encoder()); in TEST_F()
/external/chromium_org/extensions/browser/api/power/
Dpower_api_unittest.cc261 scoped_refptr<Extension> extension2(test_util::CreateEmptyExtension("id2")); in TEST_F() local
262 ASSERT_TRUE(CallFunction(REQUEST, kSystemArgs, extension2.get())); in TEST_F()
/external/chromium_org/chrome/browser/themes/
Dtheme_service_unittest.cc171 const extensions::Extension* extension2 = in TEST_F() local
173 theme_service->SetTheme(extension2); in TEST_F()
/external/chromium_org/chrome/browser/extensions/activity_log/
Dactivity_log_enabled_unittest.cc207 scoped_refptr<Extension> extension2 = in TEST_F() local
216 extension_service1->AddExtension(extension2.get()); in TEST_F()
/external/chromium_org/chrome/common/extensions/api/commands/
Dcommands_manifest_unittest.cc104 scoped_refptr<Extension> extension2 = in TEST_F() local
/external/chromium_org/chrome/browser/extensions/api/preference/
Dpreference_api_prefs_unittest.cc164 extension2(), in EnsureExtensionInstalled()
183 extension2(), in EnsureExtensionUninstalled()

12