Home
last modified time | relevance | path

Searched refs:manager (Results 1 – 25 of 1055) sorted by relevance

12345678910>>...43

/external/chromium_org/cc/input/
Dtop_controls_manager_unittest.cc61 TopControlsManager* manager() { in manager() function in cc::__anon821064290111::MockTopControlsManagerClient
88 TopControlsManager* manager = client.manager(); in TEST() local
90 manager->ScrollBegin(); in TEST()
93 manager->ScrollBy(gfx::Vector2dF(0.f, 30.f)); in TEST()
94 EXPECT_EQ(-30.f, manager->ControlsTopOffset()); in TEST()
96 manager->ScrollBy(gfx::Vector2dF(0.f, 30.f)); in TEST()
97 EXPECT_EQ(-60.f, manager->ControlsTopOffset()); in TEST()
99 manager->ScrollBy(gfx::Vector2dF(0.f, 100.f)); in TEST()
100 EXPECT_EQ(-100.f, manager->ControlsTopOffset()); in TEST()
104 manager->ScrollBy(gfx::Vector2dF(0.f, -10.f)); in TEST()
[all …]
/external/chromium_org/components/web_cache/browser/
Dweb_cache_manager_unittest.cc94 WebCacheManager* manager() { return &manager_; } in manager() function in web_cache::WebCacheManagerTest
132 EXPECT_EQ(0U, active_renderers(manager()).size()); in TEST_F()
133 EXPECT_EQ(0U, inactive_renderers(manager()).size()); in TEST_F()
135 manager()->Add(kRendererID); in TEST_F()
136 EXPECT_EQ(1U, active_renderers(manager()).count(kRendererID)); in TEST_F()
137 EXPECT_EQ(0U, inactive_renderers(manager()).count(kRendererID)); in TEST_F()
139 manager()->Remove(kRendererID); in TEST_F()
140 EXPECT_EQ(0U, active_renderers(manager()).size()); in TEST_F()
141 EXPECT_EQ(0U, inactive_renderers(manager()).size()); in TEST_F()
145 manager()->Add(kRendererID); in TEST_F()
[all …]
/external/chromium_org/content/browser/gpu/
Dgpu_data_manager_impl_private_unittest.cc128 base::Time JustBeforeExpiration(const GpuDataManagerImplPrivate* manager);
129 base::Time JustAfterExpiration(const GpuDataManagerImplPrivate* manager);
146 ScopedGpuDataManagerImplPrivate manager; in TEST_F() local
147 EXPECT_EQ(0u, manager->GetBlacklistedFeatureCount()); in TEST_F()
149 EXPECT_TRUE(manager->GpuAccessAllowed(&reason)); in TEST_F()
177 manager->InitializeForTesting(blacklist_json, gpu_info); in TEST_F()
179 EXPECT_TRUE(manager->GpuAccessAllowed(&reason)); in TEST_F()
181 EXPECT_EQ(1u, manager->GetBlacklistedFeatureCount()); in TEST_F()
182 EXPECT_TRUE(manager->IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_WEBGL)); in TEST_F()
186 manager->UpdateGpuInfo(gpu_info); in TEST_F()
[all …]
/external/chromium_org/chrome/browser/sync_file_system/drive_backend/
Dtask_dependency_manager_unittest.cc21 bool InsertPath(TaskDependencyManager* manager, in InsertPath() argument
27 return manager->Insert(&blocker); in InsertPath()
30 void ErasePath(TaskDependencyManager* manager, in ErasePath() argument
36 return manager->Erase(&blocker); in ErasePath()
39 bool InsertExclusiveTask(TaskDependencyManager* manager) { in InsertExclusiveTask() argument
42 return manager->Insert(&blocker); in InsertExclusiveTask()
45 void EraseExclusiveTask(TaskDependencyManager* manager) { in EraseExclusiveTask() argument
48 manager->Erase(&blocker); in EraseExclusiveTask()
54 TaskDependencyManager manager; in TEST() local
61 EXPECT_TRUE(manager.Insert(&blocker)); in TEST()
[all …]
/external/chromium_org/chrome/browser/background/
Dbackground_mode_manager_unittest.cc132 const TestBackgroundModeManager& manager) { in AssertBackgroundModeActive() argument
134 EXPECT_TRUE(manager.HaveStatusTray()); in AssertBackgroundModeActive()
135 EXPECT_TRUE(manager.IsLaunchOnStartup()); in AssertBackgroundModeActive()
139 const TestBackgroundModeManager& manager) { in AssertBackgroundModeInactive() argument
141 EXPECT_FALSE(manager.HaveStatusTray()); in AssertBackgroundModeInactive()
142 EXPECT_FALSE(manager.IsLaunchOnStartup()); in AssertBackgroundModeInactive()
146 const TestBackgroundModeManager& manager) { in AssertBackgroundModeSuspended() argument
148 EXPECT_FALSE(manager.HaveStatusTray()); in AssertBackgroundModeSuspended()
149 EXPECT_TRUE(manager.IsLaunchOnStartup()); in AssertBackgroundModeSuspended()
301 TestBackgroundModeManager manager( in TEST_F() local
[all …]
/external/chromium_org/ppapi/shared_impl/
Dmedia_stream_buffer_manager_unittest.cc45 MediaStreamBufferManager manager(&delegate); in TEST() local
49 EXPECT_TRUE(manager.SetBuffers(kNumberOfBuffers, in TEST()
54 int8_t* memory = reinterpret_cast<int8_t*>(manager.GetBufferPointer(0)); in TEST()
57 EXPECT_EQ(kNumberOfBuffers, manager.number_of_buffers()); in TEST()
58 EXPECT_EQ(kBufferSize, manager.buffer_size()); in TEST()
62 EXPECT_EQ(i, manager.DequeueBuffer()); in TEST()
64 manager.GetBufferPointer(i)); in TEST()
67 manager.EnqueueBuffer(0); in TEST()
68 manager.EnqueueBuffer(4); in TEST()
69 manager.EnqueueBuffer(3); in TEST()
[all …]
/external/chromium_org/chrome/test/chromedriver/chrome/
Djavascript_dialog_manager_unittest.cc17 JavaScriptDialogManager manager(&client); in TEST() local
19 ASSERT_EQ(kNoAlertOpen, manager.GetDialogMessage(&message).code()); in TEST()
20 ASSERT_FALSE(manager.IsDialogOpen()); in TEST()
22 ASSERT_EQ(kNoAlertOpen, manager.HandleDialog(false, NULL).code()); in TEST()
51 JavaScriptDialogManager manager(&client); in TEST() local
56 manager.OnEvent(&client, "Page.javascriptDialogOpening", params).code()); in TEST()
58 ASSERT_EQ(kOk, manager.HandleDialog(false, &given_text).code()); in TEST()
67 JavaScriptDialogManager manager(&client); in TEST() local
72 manager.OnEvent(&client, "Page.javascriptDialogOpening", params).code()); in TEST()
73 ASSERT_EQ(kOk, manager.HandleDialog(false, NULL).code()); in TEST()
[all …]
/external/chromium_org/content/browser/quota/
Dmock_quota_manager_unittest.cc90 MockQuotaManager* manager() const { in manager() function in content::MockQuotaManagerTest
119 EXPECT_FALSE(manager()->OriginHasData(kOrigin1, kTemporary, kClientFile)); in TEST_F()
120 EXPECT_FALSE(manager()->OriginHasData(kOrigin1, kTemporary, kClientDB)); in TEST_F()
121 EXPECT_FALSE(manager()->OriginHasData(kOrigin1, kPersistent, kClientFile)); in TEST_F()
122 EXPECT_FALSE(manager()->OriginHasData(kOrigin1, kPersistent, kClientDB)); in TEST_F()
123 EXPECT_FALSE(manager()->OriginHasData(kOrigin2, kTemporary, kClientFile)); in TEST_F()
124 EXPECT_FALSE(manager()->OriginHasData(kOrigin2, kTemporary, kClientDB)); in TEST_F()
125 EXPECT_FALSE(manager()->OriginHasData(kOrigin2, kPersistent, kClientFile)); in TEST_F()
126 EXPECT_FALSE(manager()->OriginHasData(kOrigin2, kPersistent, kClientDB)); in TEST_F()
128 manager()->AddOrigin(kOrigin1, kTemporary, kClientFile, base::Time::Now()); in TEST_F()
[all …]
/external/chromium_org/extensions/browser/guest_view/
Dguest_view_manager_unittest.cc67 scoped_ptr<guestview::TestGuestViewManager> manager( in TEST_F() local
74 EXPECT_EQ(0, manager->last_instance_id_removed_for_testing()); in TEST_F()
76 EXPECT_TRUE(manager->CanUseGuestInstanceID(1)); in TEST_F()
77 EXPECT_TRUE(manager->CanUseGuestInstanceID(2)); in TEST_F()
78 EXPECT_TRUE(manager->CanUseGuestInstanceID(3)); in TEST_F()
80 manager->AddGuest(1, web_contents1.get()); in TEST_F()
81 manager->AddGuest(2, web_contents2.get()); in TEST_F()
82 manager->RemoveGuest(2); in TEST_F()
85 EXPECT_TRUE(manager->CanUseGuestInstanceID(1)); in TEST_F()
86 EXPECT_FALSE(manager->CanUseGuestInstanceID(2)); in TEST_F()
[all …]
/external/clang/unittests/Basic/
DFileManagerTest.cpp69 FileManagerTest() : manager(options) { in FileManagerTest()
73 FileManager manager; member in __anon3484d3bb0111::FileManagerTest
79 const FileEntry *file = manager.getVirtualFile("foo.cpp", 42, 0); in TEST_F()
86 file = manager.getVirtualFile("x/y/z.cpp", 42, 0); in TEST_F()
100 manager.addStatCache(new FakeStatCache); in TEST_F()
102 EXPECT_EQ(nullptr, manager.getDirectory("virtual/dir/foo")); in TEST_F()
103 EXPECT_EQ(nullptr, manager.getDirectory("virtual/dir")); in TEST_F()
104 EXPECT_EQ(nullptr, manager.getDirectory("virtual")); in TEST_F()
110 manager.addStatCache(new FakeStatCache); in TEST_F()
112 manager.getVirtualFile("virtual/dir/bar.h", 100, 0); in TEST_F()
[all …]
/external/chromium_org/components/keyed_service/content/
Dbrowser_context_dependency_manager_unittest.cc17 BrowserContextDependencyManager* manager() { return &dependency_manager_; } in manager() function in BrowserContextDependencyManagerUnittests
31 BrowserContextDependencyManager* manager) in TestService() argument
32 : BrowserContextKeyedServiceFactory("TestService", manager), in TestService()
54 TestService service("service", shutdown_order(), manager()); in TEST_F()
56 manager()->DestroyBrowserContextServices(NULL); in TEST_F()
64 TestService parent("parent", shutdown_order(), manager()); in TEST_F()
65 TestService child("child", shutdown_order(), manager()); in TEST_F()
68 manager()->DestroyBrowserContextServices(NULL); in TEST_F()
77 TestService parent("parent", shutdown_order(), manager()); in TEST_F()
78 TestService child1("child1", shutdown_order(), manager()); in TEST_F()
[all …]
/external/chromium_org/google_apis/gcm/engine/
Dheartbeat_manager_unittest.cc40 TestHeartbeatManager* manager() const { return manager_.get(); } in manager() function in gcm::__anon27188be20111::HeartbeatManagerTest
83 EXPECT_TRUE(manager()->GetNextHeartbeatTime().is_null()); in TEST_F()
88 manager()->OnHeartbeatAcked(); in TEST_F()
89 EXPECT_TRUE(manager()->GetNextHeartbeatTime().is_null()); in TEST_F()
95 EXPECT_GT(manager()->GetNextHeartbeatTime(), base::TimeTicks::Now()); in TEST_F()
103 manager()->TriggerHearbeat(); in TEST_F()
104 base::TimeTicks heartbeat = manager()->GetNextHeartbeatTime(); in TEST_F()
109 manager()->OnHeartbeatAcked(); in TEST_F()
110 EXPECT_LT(heartbeat, manager()->GetNextHeartbeatTime()); in TEST_F()
114 manager()->TriggerHearbeat(); in TEST_F()
[all …]
/external/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/
DBindingManagerImplTest.java116 ManagerEntry(BindingManagerImpl manager, String label) { in ManagerEntry() argument
117 mManager = manager; in ManagerEntry()
148 BindingManagerImpl manager = mLowEndManager; in testNewConnectionDropsPreviousOnLowEnd() local
152 manager.addNewConnection(firstConnection.getPid(), firstConnection); in testNewConnectionDropsPreviousOnLowEnd()
155 manager.setInForeground(firstConnection.getPid(), true); in testNewConnectionDropsPreviousOnLowEnd()
160 manager.addNewConnection(secondConnection.getPid(), secondConnection); in testNewConnectionDropsPreviousOnLowEnd()
175 final BindingManagerImpl manager = mLowEndManager; in testBindingRemovalOnLowEnd() local
179 manager.addNewConnection(connection.getPid(), connection); in testBindingRemovalOnLowEnd()
189 manager.setInForeground(connection.getPid(), true); in testBindingRemovalOnLowEnd()
194 manager.setInForeground(connection.getPid(), false); in testBindingRemovalOnLowEnd()
[all …]
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DFragmentManagerTest.java33 private TestFragmentManager manager; field in FragmentManagerTest
42 manager = (TestFragmentManager) activity.getSupportFragmentManager(); in setUp()
49 manager.addFragment(CONTAINER_VIEW_ID, "tag1", fragment, false); in shouldFindFragmentById()
51 assertThat(manager.findFragmentById(CONTAINER_VIEW_ID), sameInstance((Fragment) fragment)); in shouldFindFragmentById()
56 manager.addFragment(CONTAINER_VIEW_ID, "tag1", fragment, false); in shouldFindFragmentByTag()
58 assertThat(manager.findFragmentByTag("tag1"), sameInstance((Fragment) fragment)); in shouldFindFragmentByTag()
63 manager.addFragment(View.NO_ID, null, fragment, false); in addFragment_shouldCallLifecycleMethods()
76 manager.addFragment(View.NO_ID, null, fragment, false); in startFragment_shouldCallLifecycleMethods()
78 manager.startFragment(fragment); in startFragment_shouldCallLifecycleMethods()
93 manager.addFragment(View.NO_ID, null, fragment, false); in addFragment_shouldSetTheFragmentsView()
[all …]
/external/chromium_org/tools/json_schema_compiler/
Dcpp_type_generator_test.py61 manager = CppTypeGenerator(m, _FakeSchemaLoader(m))
63 self.assertEquals('', manager.GenerateIncludes().Render())
65 manager.GenerateIncludes(include_soft=True).Render())
70 manager.GenerateForwardDeclarations().Render())
81 manager = CppTypeGenerator(m, _FakeSchemaLoader(m))
90 manager.GenerateForwardDeclarations().Render())
91 manager = CppTypeGenerator(self.models.get('permissions'),
93 self.assertEquals('', manager.GenerateIncludes().Render())
94 self.assertEquals('', manager.GenerateIncludes().Render())
95 self.assertEquals('', manager.GenerateForwardDeclarations().Render())
[all …]
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/
Dmanager_unittest.py37 from webkitpy.layout_tests.controllers.manager import Manager
53manager = Manager(port, options=MockOptions(http=True, max_locked_shards=1), printer=FakePrinter())
54 return manager
56 manager = get_manager()
57 self.assertFalse(manager.needs_servers(['fast/html']))
59 manager = get_manager()
60 self.assertTrue(manager.needs_servers(['http/tests/misc']))
64manager = Manager(port, options=MockOptions(http=True, max_locked_shards=1), printer=FakePrinter())
65 return manager
87 manager = get_manager(port)
[all …]
/external/chromium_org/components/password_manager/core/browser/
Dpassword_manager_unittest.cc58 scoped_ptr<PasswordFormManager> manager) OVERRIDE { in PromptUserToSavePassword() argument
59 PromptUserToSavePasswordPtr(manager.release()); in PromptUserToSavePassword()
63 scoped_ptr<PasswordFormManager> manager) OVERRIDE { in AutomaticPasswordSave() argument
64 AutomaticPasswordSavePtr(manager.release()); in AutomaticPasswordSave()
215 TestPasswordManager* manager() { return manager_.get(); } in manager() function in password_manager::PasswordManagerTest
218 manager()->OnPasswordFormSubmitted(form); in OnPasswordFormSubmitted()
258 manager()->OnPasswordFormsParsed(observed); // The initial load. in TEST_F()
259 manager()->OnPasswordFormsRendered(observed, true); // The initial layout. in TEST_F()
262 manager()->ProvisionallySavePassword(form); in TEST_F()
270 manager()->OnPasswordFormsParsed(observed); // The post-navigation load. in TEST_F()
[all …]
/external/chromium_org/chrome/browser/policy/cloud/
Duser_policy_signin_service_base.cc63 UserCloudPolicyManager* manager = policy_manager(); in FetchPolicyForSignedInUser() local
64 DCHECK(manager); in FetchPolicyForSignedInUser()
65 DCHECK(!manager->core()->client()); in FetchPolicyForSignedInUser()
67 DCHECK(manager->IsClientRegistered()); in FetchPolicyForSignedInUser()
70 manager->core()->service()->RefreshPolicy(callback); in FetchPolicyForSignedInUser()
141 UserCloudPolicyManager* manager = policy_manager(); in PrepareForUserCloudPolicyManagerShutdown() local
142 if (manager && manager->core()->client()) in PrepareForUserCloudPolicyManagerShutdown()
143 manager->core()->client()->RemoveObserver(this); in PrepareForUserCloudPolicyManagerShutdown()
144 if (manager && manager->core()->service()) in PrepareForUserCloudPolicyManagerShutdown()
145 manager->core()->service()->RemoveObserver(this); in PrepareForUserCloudPolicyManagerShutdown()
[all …]
/external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/
DLogManagerTest.java51 LogManager manager = LogManager.getLogManager(); field in LogManagerTest
189 assertTrue(manager.addLogger(foo)); in testAddGetLogger_Hierachy()
190 assertSame(manager.getLogger(""), manager.getLogger( in testAddGetLogger_Hierachy()
194 assertTrue(manager.addLogger(otherChild)); in testAddGetLogger_Hierachy()
195 assertTrue(manager.addLogger(grandson)); in testAddGetLogger_Hierachy()
210 Logger realRoot = manager.getLogger(""); in testAddLoggerReverseOrder()
212 manager.addLogger(fooGrandChild); in testAddLoggerReverseOrder()
215 manager.addLogger(root); in testAddLoggerReverseOrder()
219 manager.addLogger(foo); in testAddLoggerReverseOrder()
223 manager.addLogger(fooGrandChild2); in testAddLoggerReverseOrder()
[all …]
/external/chromium_org/components/web_modal/
Dweb_contents_modal_dialog_manager_unittest.cc96 manager(NULL) { in WebContentsModalDialogManagerTest()
104 manager = WebContentsModalDialogManager::FromWebContents(web_contents()); in SetUp()
105 manager->SetDelegate(delegate.get()); in SetUp()
106 test_api.reset(new WebContentsModalDialogManager::TestApi(manager)); in SetUp()
124 WebContentsModalDialogManager* manager; member in web_modal::WebContentsModalDialogManagerTest
149 new TestNativeWebContentsModalDialogManager(dialog, manager, &tracker); in TEST_F()
150 manager->ShowDialogWithManager(dialog, in TEST_F()
154 EXPECT_TRUE(manager->IsDialogActive()); in TEST_F()
171 new TestNativeWebContentsModalDialogManager(dialog, manager, &tracker); in TEST_F()
172 manager->ShowDialogWithManager(dialog, in TEST_F()
[all …]
/external/chromium_org/sync/internal_api/
Dsync_backup_manager_unittest.cc52 void InitManager(SyncManager* manager, in InitManager() argument
54 manager_ = manager; in InitManager()
59 manager->AddObserver(this); in InitManager()
71 manager->Init(&args); in InitManager()
115 scoped_ptr<SyncBackupManager> manager(new SyncBackupManager); in TEST_F() local
116 InitManager(manager.get(), InternalComponentsFactory::STORAGE_IN_MEMORY); in TEST_F()
118 CreateEntry(manager->GetUserShare(), SEARCH_ENGINES, "test"); in TEST_F()
122 ReadTransaction trans(FROM_HERE, manager->GetUserShare()); in TEST_F()
130 manager->SaveChanges(); in TEST_F()
134 ReadTransaction trans(FROM_HERE, manager->GetUserShare()); in TEST_F()
[all …]
/external/llvm/test/Other/
Dpass-pipeline-parsing.ll1 ; RUN: opt -disable-output -debug-pass-manager \
4 ; CHECK-TWO-NOOP-MP: Starting module pass manager
7 ; CHECK-TWO-NOOP-MP: Finished module pass manager
9 ; RUN: opt -disable-output -debug-pass-manager \
12 ; CHECK-NESTED-TWO-NOOP-MP: Starting module pass manager
14 ; CHECK-NESTED-TWO-NOOP-MP: Starting module pass manager
17 ; CHECK-NESTED-TWO-NOOP-MP: Finished module pass manager
18 ; CHECK-NESTED-TWO-NOOP-MP: Finished module pass manager
20 ; RUN: opt -disable-output -debug-pass-manager \
23 ; CHECK-TWO-NOOP-FP: Starting module pass manager
[all …]
/external/chromium_org/base/threading/
Dthread_id_name_manager_unittest.cc20 base::ThreadIdNameManager* manager = base::ThreadIdNameManager::GetInstance(); in TEST_F() local
27 EXPECT_STREQ(kAThread, manager->GetName(thread_a.thread_id())); in TEST_F()
28 EXPECT_STREQ(kBThread, manager->GetName(thread_b.thread_id())); in TEST_F()
35 base::ThreadIdNameManager* manager = base::ThreadIdNameManager::GetInstance(); in TEST_F() local
44 EXPECT_STREQ(kAThread, manager->GetName(thread_a.thread_id())); in TEST_F()
47 EXPECT_STREQ("", manager->GetName(thread_a.thread_id())); in TEST_F()
51 base::ThreadIdNameManager* manager = base::ThreadIdNameManager::GetInstance(); in TEST_F() local
56 EXPECT_STREQ(kAThread, manager->GetName(a_id)); in TEST_F()
60 EXPECT_STREQ("", manager->GetName(a_id)); in TEST_F()
61 EXPECT_STREQ(kAThread, manager->GetName(thread_a.thread_id())); in TEST_F()
[all …]
/external/chromium_org/third_party/webrtc/base/
Dnetwork_unittest.cc108 BasicNetworkManager manager; in TEST_F() local
109 NetworkManager::NetworkList result = GetNetworks(manager, true); in TEST_F()
144 BasicNetworkManager manager; in TEST_F() local
145 manager.SignalNetworksChanged.connect( in TEST_F()
147 manager.StartUpdating(); in TEST_F()
153 manager.StartUpdating(); in TEST_F()
154 EXPECT_TRUE(manager.started()); in TEST_F()
157 manager.StopUpdating(); in TEST_F()
158 EXPECT_TRUE(manager.started()); in TEST_F()
159 manager.StopUpdating(); in TEST_F()
[all …]
/external/chromium_org/chrome/browser/chromeos/app_mode/
Dkiosk_app_manager_browsertest.cc106 AppDataLoadWaiter(KioskAppManager* manager, int data_loaded_threshold) in AppDataLoadWaiter() argument
108 manager_(manager), in AppDataLoadWaiter()
210 manager()->GetApps(&apps); in GetAppIds()
282 return manager()->GetCachedCrx(app_id, file_path, version); in GetCachedCrx()
285 void UpdateAppData() { manager()->UpdateAppData(); } in UpdateAppData()
293 AppDataLoadWaiter waiter(manager(), 3); in RunAddNewAppTest()
294 manager()->AddApp(id); in RunAddNewAppTest()
315 manager()->GetApps(&apps); in RunAddNewAppTest()
344 KioskAppManager* manager() const { return KioskAppManager::Get(); } in manager() function in chromeos::KioskAppManagerTest
358 manager()->AddApp("fake_app_1"); in IN_PROC_BROWSER_TEST_F()
[all …]

12345678910>>...43