Home
last modified time | relevance | path

Searched refs:registry_ (Results 1 – 25 of 63) sorted by relevance

123

/external/chromium_org/chrome/browser/extensions/api/dial/
Ddial_registry_unittest.cc90 registry_.reset(new MockDialRegistry(&mock_observer_, in DialRegistryTest()
99 scoped_ptr<MockDialRegistry> registry_; member in extensions::DialRegistryTest
114 EXPECT_CALL(registry_->mock_service(), in SetListenerExpectations()
117 EXPECT_CALL(registry_->mock_service(), in SetListenerExpectations()
125 EXPECT_CALL(registry_->mock_service(), Discover()) in TEST_F()
128 EXPECT_FALSE(registry_->repeating_timer_.IsRunning()); in TEST_F()
129 registry_->OnListenerAdded(); in TEST_F()
130 EXPECT_TRUE(registry_->repeating_timer_.IsRunning()); in TEST_F()
131 registry_->OnListenerAdded(); in TEST_F()
132 EXPECT_TRUE(registry_->repeating_timer_.IsRunning()); in TEST_F()
[all …]
/external/chromium_org/chrome/browser/extensions/api/mdns/
Ddns_sd_registry_unittest.cc71 registry_.reset(new TestDnsSdRegistry()); in SetUp()
72 registry_->AddObserver(&observer_); in SetUp()
76 scoped_ptr<TestDnsSdRegistry> registry_; member in extensions::DnsSdRegistryTest
88 registry_->RegisterDnsSdListener(service_type); in TEST_F()
89 registry_->RegisterDnsSdListener(service_type); in TEST_F()
90 registry_->UnregisterDnsSdListener(service_type); in TEST_F()
91 EXPECT_EQ(1, registry_->GetServiceListenerCount(service_type)); in TEST_F()
93 registry_->UnregisterDnsSdListener(service_type); in TEST_F()
94 EXPECT_EQ(0, registry_->GetServiceListenerCount(service_type)); in TEST_F()
121 registry_->RegisterDnsSdListener(service_type); in TEST_F()
[all …]
/external/chromium_org/content/browser/streams/
Dstream_unittest.cc20 registry_.reset(new StreamRegistry()); in SetUp()
36 scoped_ptr<StreamRegistry> registry_; member in content::StreamTest
118 new Stream(registry_.get(), &writer, url)); in TEST_F()
129 new Stream(registry_.get(), &writer, url)); in TEST_F()
141 new Stream(registry_.get(), &writer, url)); in TEST_F()
155 new Stream(registry_.get(), &writer, url)); in TEST_F()
182 new Stream(registry_.get(), &writer, url)); in TEST_F()
199 new Stream(registry_.get(), &writer, url)); in TEST_F()
201 scoped_refptr<Stream> stream2 = registry_->GetStream(url); in TEST_F()
210 new Stream(registry_.get(), &writer, url1)); in TEST_F()
[all …]
Dstream_url_request_job_unittest.cc38 MockProtocolHandler(StreamRegistry* registry) : registry_(registry) {} in MockProtocolHandler()
44 scoped_refptr<Stream> stream = registry_->GetStream(request->url()); in MaybeCreateJob()
51 StreamRegistry* registry_; member in content::StreamURLRequestJobTest::MockProtocolHandler
57 registry_.reset(new StreamRegistry()); in SetUp()
60 "blob", new MockProtocolHandler(registry_.get())); in SetUp()
97 scoped_ptr<StreamRegistry> registry_; member in content::StreamURLRequestJobTest
106 new Stream(registry_.get(), NULL, kStreamURL)); in TEST_F()
119 new Stream(registry_.get(), NULL, kStreamURL)); in TEST_F()
149 new Stream(registry_.get(), NULL, kStreamURL)); in TEST_F()
166 new Stream(registry_.get(), NULL, kStreamURL)); in TEST_F()
Dstream.cc33 registry_(registry), in Stream()
50 registry_->RegisterStream(this); in Stream()
80 registry_->UnregisterStream(url()); in Abort()
88 if (!registry_->UpdateMemoryUsage(url(), current_buffered_bytes, size)) { in AddData()
143 registry_->UnregisterStream(url()); in ReadRawData()
181 registry_->UnregisterStream(url()); in CloseHandle()
Dstream_context.h35 StreamRegistry* registry() const { return registry_.get(); } in registry()
48 scoped_ptr<StreamRegistry> registry_; variable
/external/chromium_org/chrome/browser/extensions/
Dextension_disabled_ui_browsertest.cc45 registry_ = ExtensionRegistry::Get(browser()->profile()); in SetUpOnMainThread()
74 size_t size_before = registry_->enabled_extensions().size(); in InstallIncreasingPermissionExtensionV1()
78 if (registry_->enabled_extensions().size() != size_before + 1) in InstallIncreasingPermissionExtensionV1()
89 size_t size_before = registry_->enabled_extensions().size(); in UpdateIncreasingPermissionExtension()
95 registry_->enabled_extensions().size()); in UpdateIncreasingPermissionExtension()
96 if (registry_->disabled_extensions().size() != 1u) in UpdateIncreasingPermissionExtension()
99 return registry_->disabled_extensions().begin()->get(); in UpdateIncreasingPermissionExtension()
111 ExtensionRegistry* registry_; member in ExtensionDisabledGlobalErrorTest
124 const size_t size_before = registry_->enabled_extensions().size(); in IN_PROC_BROWSER_TEST_F()
127 EXPECT_EQ(size_before + 1, registry_->enabled_extensions().size()); in IN_PROC_BROWSER_TEST_F()
[all …]
Dextension_service.cc282 registry_(extensions::ExtensionRegistry::Get(profile)), in ExtensionService()
370 return &registry_->enabled_extensions(); in extensions()
405 return registry_->GetExtensionById(id, include_mask); in GetExtensionById()
414 DCHECK_EQ(registry_->enabled_extensions().size(), 0u); in Init()
433 const ExtensionSet& disabled_extensions = registry_->disabled_extensions(); in Init()
493 registry_->GenerateInstalledExtensionsSet(); in LoadGreylistFromPrefs()
617 if (registry_->blacklisted_extensions().Contains(transient_extension_id)) in ReloadExtension()
809 if (registry_->enabled_extensions().Contains(extension_id) || in IsExtensionEnabled()
810 registry_->terminated_extensions().Contains(extension_id)) { in IsExtensionEnabled()
814 if (registry_->disabled_extensions().Contains(extension_id) || in IsExtensionEnabled()
[all …]
/external/chromium_org/content/renderer/media/webrtc/
Dvideo_destination_handler_unittest.cc39 registry_(new MockMediaStreamRegistry()) { in VideoDestinationHandlerTest()
40 registry_->Init(kTestStreamUrl); in VideoDestinationHandlerTest()
44 registry_.reset(); in TearDown()
54 scoped_ptr<MockMediaStreamRegistry> registry_; member in content::VideoDestinationHandlerTest
60 EXPECT_FALSE(VideoDestinationHandler::Open(registry_.get(), in TEST_F()
62 EXPECT_TRUE(VideoDestinationHandler::Open(registry_.get(), in TEST_F()
70 EXPECT_TRUE(VideoDestinationHandler::Open(registry_.get(), in TEST_F()
75 const blink::WebMediaStream test_stream = registry_->test_stream(); in TEST_F()
/external/chromium_org/chrome/browser/custom_handlers/
Dregister_protocol_handler_permission_request.cc33 : registry_(registry), in RegisterProtocolHandlerPermissionRequest()
47 ProtocolHandler old_handler = registry_->GetHandlerFor(handler_.protocol()); in GetMessageText()
62 ProtocolHandler old_handler = registry_->GetHandlerFor(handler_.protocol()); in GetMessageTextFragment()
84 registry_->OnAcceptRegisterProtocolHandler(handler_); in PermissionGranted()
90 registry_->OnIgnoreRegisterProtocolHandler(handler_); in PermissionDenied()
96 registry_->OnIgnoreRegisterProtocolHandler(handler_); in Cancelled()
Dregister_protocol_handler_infobar_delegate.cc48 registry_(registry), in RegisterProtocolHandlerInfoBarDelegate()
73 ProtocolHandler old_handler = registry_->GetHandlerFor(handler_.protocol()); in GetMessageText()
100 registry_->OnAcceptRegisterProtocolHandler(handler_); in Accept()
107 registry_->OnIgnoreRegisterProtocolHandler(handler_); in Cancel()
/external/chromium_org/chrome/browser/policy/
Dschema_registry_service.cc17 : registry_(registry.Pass()) { in SchemaRegistryService()
19 registry_->RegisterComponent(PolicyNamespace(POLICY_DOMAIN_CHROME, ""), in SchemaRegistryService()
22 registry_->SetReady(POLICY_DOMAIN_CHROME); in SchemaRegistryService()
24 global_registry->Track(registry_.get()); in SchemaRegistryService()
Dschema_registry_service.h29 SchemaRegistry* registry() const { return registry_.get(); } in registry()
32 scoped_ptr<SchemaRegistry> registry_;
/external/chromium_org/chrome/browser/chromeos/login/test/
Dapp_window_waiter.cc13 : registry_(registry), app_id_(app_id), window_(NULL) { in AppWindowWaiter()
14 registry_->AddObserver(this); in AppWindowWaiter()
18 registry_->RemoveObserver(this); in ~AppWindowWaiter()
22 window_ = registry_->GetCurrentAppWindowForApp(app_id_); in Wait()
/external/chromium_org/chrome/browser/extensions/api/declarative/
Drules_registry_with_cache_unittest.cc42 registry_(new TestRulesRegistry(profile(), in RulesRegistryWithCacheTest()
81 return AddRule(extension_id, rule_id, registry_.get()); in AddRule()
88 return registry_->RemoveRules(extension_id, remove_rules); in RemoveRule()
99 return GetNumberOfRules(extension_id, registry_.get()); in GetNumberOfRules()
107 scoped_refptr<TestRulesRegistry> registry_; member in extensions::RulesRegistryWithCacheTest
115 registry_->SetResult("Error"); in TEST_F()
118 registry_->SetResult(std::string()); in TEST_F()
143 registry_->SetResult("Error"); in TEST_F()
146 registry_->SetResult(std::string()); in TEST_F()
168 registry_->SetResult("Error"); in TEST_F()
[all …]
/external/chromium_org/chrome/browser/themes/
Dtheme_service_unittest.cc34 registry_(NULL) {} in ThemeServiceTest()
92 registry_ = ExtensionRegistry::Get(profile_.get()); in SetUp()
93 ASSERT_TRUE(registry_); in SetUp()
102 ExtensionRegistry* registry_; member in theme_service_internal::ThemeServiceTest
153 EXPECT_TRUE(registry_->GetExtensionById(extension1_id, in TEST_F()
161 EXPECT_TRUE(registry_->GetExtensionById(extension2_id, in TEST_F()
173 EXPECT_TRUE(registry_->GetExtensionById(extension1_id, in TEST_F()
208 EXPECT_TRUE(registry_->GetExtensionById(extension1_id, in TEST_F()
223 EXPECT_TRUE(registry_->GetExtensionById(extension1_id, in TEST_F()
229 EXPECT_TRUE(registry_->GetExtensionById(extension1_id, in TEST_F()
/external/chromium_org/content/renderer/media/
Dvideo_source_handler_unittest.cc47 registry_() { in VideoSourceHandlerTest()
48 handler_.reset(new VideoSourceHandler(&registry_)); in VideoSourceHandlerTest()
49 registry_.Init(kTestStreamUrl); in VideoSourceHandlerTest()
50 registry_.AddVideoTrack(kTestVideoTrackId); in VideoSourceHandlerTest()
57 MockMediaStreamRegistry registry_; member in content::VideoSourceHandlerTest
Dvideo_source_handler.cc74 : registry_(registry) { in VideoSourceHandler()
110 if (registry_) { in GetFirstVideoTrack()
111 stream = registry_->GetMediaStream(url); in GetFirstVideoTrack()
/external/chromium_org/components/policy/core/common/cloud/
Dcomponent_cloud_policy_service_unittest.cc124 &registry_, in SetUp()
189 registry_.RegisterComponent( in InitializeRegistry()
192 registry_.SetReady(POLICY_DOMAIN_CHROME); in InitializeRegistry()
193 registry_.SetReady(POLICY_DOMAIN_EXTENSIONS); in InitializeRegistry()
237 SchemaRegistry registry_; member in policy::ComponentCloudPolicyServiceTest
251 &registry_, in TEST_F()
347 registry_.SetReady(POLICY_DOMAIN_CHROME); in TEST_F()
348 registry_.SetReady(POLICY_DOMAIN_EXTENSIONS); in TEST_F()
358 registry_.RegisterComponent( in TEST_F()
395 registry_.RegisterComponent( in TEST_F()
[all …]
/external/chromium_org/chrome/browser/devtools/device/
Dport_forwarding_controller.cc303 PortForwardingController::Registry* registry_; member in PortForwardingController::Connection
321 : registry_(registry), in Connection()
328 (*registry_)[device_->serial()] = this; in Connection()
336 registry_ = NULL; in Shutdown()
343 if (registry_) { in ~Connection()
344 DCHECK(registry_->find(device_->serial()) != registry_->end()); in ~Connection()
345 registry_->erase(device_->serial()); in ~Connection()
470 if (!registry_) { in OnSocketOpened()
573 Registry::iterator rit = registry_.find(device->serial()); in DeviceListChanged()
574 if (rit == registry_.end()) { in DeviceListChanged()
[all …]
/external/chromium_org/chrome/browser/ui/ash/launcher/
Dapp_window_launcher_controller.cc43 registry_.insert(registry); in AppWindowLauncherController()
56 for (std::set<apps::AppWindowRegistry*>::iterator it = registry_.begin(); in ~AppWindowLauncherController()
57 it != registry_.end(); in ~AppWindowLauncherController()
80 if (registry_.find(registry) != registry_.end()) in AdditionalUserAddedToSession()
84 registry_.insert(registry); in AdditionalUserAddedToSession()
/external/chromium_org/extensions/browser/
Druntime_data.cc13 RuntimeData::RuntimeData(ExtensionRegistry* registry) : registry_(registry) { in RuntimeData()
14 registry_->AddObserver(this); in RuntimeData()
18 registry_->RemoveObserver(this); in ~RuntimeData()
Druntime_data_unittest.cc42 RuntimeDataTest() : registry_(NULL), runtime_data_(&registry_) {} in RuntimeDataTest()
46 ExtensionRegistry registry_; member in extensions::__anon7e2e17510111::RuntimeDataTest
/external/chromium_org/chromeos/process_proxy/
Dprocess_proxy_unittest.cc183 registry_ = ProcessProxyRegistry::Get(); in InitRegistryTest()
185 EXPECT_TRUE(registry_->OpenProcess( in InitRegistryTest()
191 test_runner_->StartRegistryTest(registry_); in InitRegistryTest()
195 registry_->CloseProcess(pid_); in EndRegistryTest()
228 ProcessProxyRegistry* registry_; member in chromeos::ProcessProxyTest
/external/chromium_org/components/policy/core/common/
Dmock_configuration_policy_provider.h40 ConfigurationPolicyProvider::Init(&registry_); in Init()
50 SchemaRegistry registry_; variable

123