Home
last modified time | relevance | path

Searched refs:TID_UI (Results 1 – 25 of 73) sorted by relevance

123

/third_party/cef/tests/cefclient/browser/
Droot_window_views.cc91 if (!CefCurrentlyOn(TID_UI)) { in Show()
93 CefPostTask(TID_UI, base::BindOnce(&RootWindowViews::Show, this, mode)); in Show()
115 if (!CefCurrentlyOn(TID_UI)) { in Hide()
117 CefPostTask(TID_UI, base::BindOnce(&RootWindowViews::Hide, this)); in Hide()
126 if (!CefCurrentlyOn(TID_UI)) { in SetBounds()
128 CefPostTask(TID_UI, base::BindOnce(&RootWindowViews::SetBounds, this, x, y, in SetBounds()
140 if (!CefCurrentlyOn(TID_UI)) { in Close()
142 CefPostTask(TID_UI, base::BindOnce(&RootWindowViews::Close, this, force)); in Close()
196 if (!CefCurrentlyOn(TID_UI)) { in OnExtensionsChanged()
198 CefPostTask(TID_UI, base::BindOnce(&RootWindowViews::OnExtensionsChanged, in OnExtensionsChanged()
[all …]
Dosr_window_win.cc125 if (!CefCurrentlyOn(TID_UI)) { in CreateBrowser()
130 CefPostTask(TID_UI, base::BindOnce(CreateBrowserWithHelper, helper)); in CreateBrowser()
159 if (!CefCurrentlyOn(TID_UI)) { in ShowPopup()
161 CefPostTask(TID_UI, base::BindOnce(&OsrWindowWin::ShowPopup, this, in ShowPopup()
185 if (!CefCurrentlyOn(TID_UI)) { in Show()
187 CefPostTask(TID_UI, base::BindOnce(&OsrWindowWin::Show, this)); in Show()
209 if (!CefCurrentlyOn(TID_UI)) { in Hide()
211 CefPostTask(TID_UI, base::BindOnce(&OsrWindowWin::Hide, this)); in Hide()
229 if (!CefCurrentlyOn(TID_UI)) { in SetBounds()
231 CefPostTask(TID_UI, base::BindOnce(&OsrWindowWin::SetBounds, this, x, y, in SetBounds()
[all …]
Dtest_runner.cc203 if (!CefCurrentlyOn(TID_UI)) { in ModifyZoom()
205 CefPostTask(TID_UI, base::BindOnce(&ModifyZoom, browser, delta)); in ModifyZoom()
293 if (!CefCurrentlyOn(TID_UI)) { in PromptFPS()
295 CefPostTask(TID_UI, base::BindOnce(&PromptFPS, browser)); in PromptFPS()
322 if (!CefCurrentlyOn(TID_UI)) { in BeginTracing()
324 CefPostTask(TID_UI, base::BindOnce(&BeginTracing)); in BeginTracing()
332 if (!CefCurrentlyOn(TID_UI)) { in EndTracing()
334 CefPostTask(TID_UI, base::BindOnce(&EndTracing, browser)); in EndTracing()
388 if (!CefCurrentlyOn(TID_UI)) { in PrintToPDF()
390 CefPostTask(TID_UI, base::BindOnce(&PrintToPDF, browser)); in PrintToPDF()
Dscheme_test.cc34 DCHECK(!CefCurrentlyOn(TID_UI) && !CefCurrentlyOn(TID_IO)); in Open()
100 DCHECK(!CefCurrentlyOn(TID_UI) && !CefCurrentlyOn(TID_IO)); in Read()
/third_party/cef/tests/ceftests/
Dtest_server.cc305 if (!CefCurrentlyOn(TID_UI)) { in NotifyServerCreated()
306 CefPostTask(TID_UI, base::BindOnce(ServerHandler::NotifyServerCreated, in NotifyServerCreated()
316 if (!CefCurrentlyOn(TID_UI)) { in NotifyServerDestroyed()
317 CefPostTask(TID_UI, base::BindOnce(ServerHandler::NotifyServerDestroyed)); in NotifyServerDestroyed()
326 if (!CefCurrentlyOn(TID_UI)) { in NotifyServerHandlerDeleted()
327 CefPostTask(TID_UI, in NotifyServerHandlerDeleted()
338 if (!CefCurrentlyOn(TID_UI)) { in NotifyClientConnected()
339 CefPostTask(TID_UI, base::BindOnce(ServerHandler::NotifyClientConnected, in NotifyClientConnected()
350 if (!CefCurrentlyOn(TID_UI)) { in NotifyClientDisconnected()
351 CefPostTask(TID_UI, base::BindOnce(ServerHandler::NotifyClientDisconnected, in NotifyClientDisconnected()
[all …]
Dthread_helper.h22 #define WaitForUIThread() WaitForThread(TID_UI)
25 #define WaitForUIThreadWithDelay(delay_ms) WaitForThread(TID_UI, delay_ms)
30 #define EXPECT_UI_THREAD() EXPECT_TRUE(CefCurrentlyOn(TID_UI));
52 NAMED_THREAD_TEST(TID_UI, test_case_name, test_name)
71 NAMED_THREAD_TEST_ASYNC(TID_UI, test_case_name, test_name)
Dtest_handler.cc149 CefPostTask(TID_UI, in PostTask()
158 TID_UI, in PostDelayedTask()
315 if (!CefCurrentlyOn(TID_UI)) { in DestroyTest()
316 CefPostTask(TID_UI, base::BindOnce(&TestHandler::DestroyTest, this)); in DestroyTest()
353 if (use_views && !CefCurrentlyOn(TID_UI)) { in CreateBrowser()
355 CefPostTask(TID_UI, base::BindOnce(&TestHandler::CreateBrowser, this, url, in CreateBrowser()
431 if (!CefCurrentlyOn(TID_UI)) { in SetTestTimeout()
432 CefPostTask(TID_UI, base::BindOnce(&TestHandler::SetTestTimeout, this, in SetTestTimeout()
456 if (!CefCurrentlyOn(TID_UI)) { in TestComplete()
457 CefPostTask(TID_UI, base::BindOnce(&TestHandler::TestComplete, this)); in TestComplete()
Ddownload_unittest.cc44 EXPECT_FALSE(CefCurrentlyOn(TID_UI) || CefCurrentlyOn(TID_IO)); in Open()
87 EXPECT_FALSE(CefCurrentlyOn(TID_UI) || CefCurrentlyOn(TID_IO)); in Read()
273 TID_UI, base::BindOnce(&DownloadTestHandler::DestroyTest, this), in OnLoadEnd()
284 if (!CefCurrentlyOn(TID_UI)) { in OnDelayCallback()
285 CefPostTask(TID_UI, base::BindOnce(&DownloadTestHandler::OnDelayCallback, in OnDelayCallback()
324 EXPECT_TRUE(CefCurrentlyOn(TID_UI)); in OnBeforeDownload()
365 EXPECT_TRUE(CefCurrentlyOn(TID_UI)); in OnDownloadUpdated()
432 CefPostTask(TID_UI, in VerifyResultsOnFileThread()
499 TID_UI, in SendClick()
504 TID_UI, in SendClick()
Dosr_accessibility_unittest.cc103 TID_UI, in OnLoadEnd()
143 TID_UI, in OnAccessibilityTreeChange()
167 TID_UI, in OnAccessibilityTreeChange()
184 TID_UI, in OnAccessibilityTreeChange()
207 CefPostTask(TID_UI, in OnAccessibilityLocationChange()
256 TID_UI, base::BindOnce(&AccessibilityTestHandler::DestroyTest, this), in DisableAccessibility()
382 TID_UI, base::BindOnce(&AccessibilityTestHandler::DestroyTest, this), in TestEnableAccessibilityUpdate()
Dcookie_unittest.cc40 EXPECT_TRUE(CefCurrentlyOn(TID_UI)); in OnComplete()
58 EXPECT_TRUE(CefCurrentlyOn(TID_UI)); in OnComplete()
78 EXPECT_TRUE(CefCurrentlyOn(TID_UI)); in OnComplete()
110 EXPECT_TRUE(CefCurrentlyOn(TID_UI)); in Visit()
606 if (!CefCurrentlyOn(TID_UI)) { in LoadNextURL()
607 CefPostTask(TID_UI, base::BindOnce(&CookieTestJSHandler::LoadNextURL, in LoadNextURL()
616 if (!CefCurrentlyOn(TID_UI)) { in CompleteTest()
617 CefPostTask(TID_UI, in CompleteTest()
723 EXPECT_FALSE(CefCurrentlyOn(TID_UI) || CefCurrentlyOn(TID_IO)); in Open()
771 EXPECT_FALSE(CefCurrentlyOn(TID_UI) || CefCurrentlyOn(TID_IO)); in Read()
[all …]
Dpdf_viewer_unittest.cc135 TID_UI, base::BindOnce(&PdfViewerTestHandler::DestroyTest, this), in OnLoadEnd()
140 TID_UI, in OnLoadEnd()
185 CefPostTask(TID_UI, in OnContextMenuDismissed()
Dprocess_message_unittest.cc98 EXPECT_TRUE(CefCurrentlyOn(TID_UI)); in OnLoadEnd()
114 EXPECT_TRUE(CefCurrentlyOn(TID_UI)); in OnProcessMessageReceived()
160 CefRefPtr<SendRecvTestHandler> handler = new SendRecvTestHandler(TID_UI); in TEST()
Dosr_display_unittest.cc50 CefPostTask(TID_UI, in OnPaint()
86 TID_UI, base::BindOnce(&DisplayTestHandler::OnNavigate, this), 250); in OnQuery()
129 CefPostTask(TID_UI, base::BindOnce(&DisplayTestHandler::OnStart, this)); in OnStartIfDone()
264 TID_UI, in OnLoadingStateChange()
/third_party/cef/tests/shared/browser/
Dmain_message_loop_std.cc23 CefPostTask(TID_UI, task); in PostTask()
27 return CefCurrentlyOn(TID_UI); in RunsTasksOnCurrentThread()
Dextension_util.cc66 if (!CefCurrentlyOn(TID_UI)) { in RunManifestCallback()
68 CefPostTask(TID_UI, base::BindOnce(std::move(callback), manifest)); in RunManifestCallback()
171 if (!CefCurrentlyOn(TID_UI)) { in LoadExtension()
173 CefPostTask(TID_UI, base::BindOnce(LoadExtension, request_context, in LoadExtension()
/third_party/cef/tests/ceftests/extensions/
Dbackground_unittest.cc32 EXPECT_TRUE(CefCurrentlyOn(TID_UI)); in OnExtensionLoaded()
55 EXPECT_TRUE(CefCurrentlyOn(TID_UI)); in OnExtensionUnloaded()
78 TID_UI, in OnExtensionUnloaded()
86 EXPECT_TRUE(CefCurrentlyOn(TID_UI)); in OnBeforeBackgroundBrowser()
242 CefPostTask(TID_UI, base::BindOnce( in TriggerDestroyTest()
Dview_unittest.cc25 EXPECT_TRUE(CefCurrentlyOn(TID_UI)); in OnExtensionLoaded()
43 EXPECT_TRUE(CefCurrentlyOn(TID_UI)); in OnExtensionUnloaded()
65 CefPostTask(TID_UI, in OnExtensionUnloaded()
197 CefPostTask(TID_UI, in TriggerDestroyTest()
Dchrome_alarms_unittest.cc31 EXPECT_TRUE(CefCurrentlyOn(TID_UI)); in OnExtensionLoaded()
50 EXPECT_TRUE(CefCurrentlyOn(TID_UI)); in OnExtensionUnloaded()
59 CefPostTask(TID_UI, base::BindOnce(&AlarmsTestHandler::DestroyTest, this)); in OnExtensionUnloaded()
170 CefPostTask(TID_UI, base::BindOnce(&AlarmsTestHandler::UnloadExtension, in TriggerDestroyTest()
Dchrome_storage_unittest.cc31 EXPECT_TRUE(CefCurrentlyOn(TID_UI)); in OnExtensionLoaded()
50 EXPECT_TRUE(CefCurrentlyOn(TID_UI)); in OnExtensionUnloaded()
59 CefPostTask(TID_UI, base::BindOnce(&StorageTestHandler::DestroyTest, this)); in OnExtensionUnloaded()
170 CefPostTask(TID_UI, base::BindOnce(&StorageTestHandler::UnloadExtension, in TriggerDestroyTest()
Dchrome_tabs_unittest.cc40 EXPECT_TRUE(CefCurrentlyOn(TID_UI)); in OnExtensionLoaded()
62 EXPECT_TRUE(CefCurrentlyOn(TID_UI)); in OnExtensionUnloaded()
71 CefPostTask(TID_UI, base::BindOnce(&TabsTestHandler::DestroyTest, this)); in OnExtensionUnloaded()
77 EXPECT_TRUE(CefCurrentlyOn(TID_UI)); in GetActiveBrowser()
93 EXPECT_TRUE(CefCurrentlyOn(TID_UI)); in CanAccessBrowser()
275 CefPostTask(TID_UI, base::BindOnce(&TabsTestHandler::UnloadExtension, this, in TriggerDestroyTest()
630 EXPECT_TRUE(CefCurrentlyOn(TID_UI)); in GetExtensionResource()
877 EXPECT_TRUE(CefCurrentlyOn(TID_UI)); in GetExtensionResource()
/third_party/cef/libcef_dll/wrapper/
Dcef_stream_resource_handler.cc40 DCHECK(!CefCurrentlyOn(TID_UI) && !CefCurrentlyOn(TID_IO)); in Open()
68 DCHECK(!CefCurrentlyOn(TID_UI) && !CefCurrentlyOn(TID_IO)); in Read()
/third_party/cef/tests/ceftests/views/
Dwindow_unittest.cc237 CefPostDelayedTask(TID_UI, base::BindOnce(VerifyRestore, window), in VerifyMaximize()
251 CefPostDelayedTask(TID_UI, base::BindOnce(VerifyMaximize, window), in RunWindowMaximize()
281 CefPostDelayedTask(TID_UI, base::BindOnce(VerifyRestore, window), in VerifyMinimize()
295 CefPostDelayedTask(TID_UI, base::BindOnce(VerifyMinimize, window), in RunWindowMinimize()
333 CefPostDelayedTask(TID_UI, base::BindOnce(VerifyFullscreenExit, window), in VerifyFullscreen()
347 CefPostDelayedTask(TID_UI, base::BindOnce(VerifyFullscreen, window), in RunWindowFullscreen()
463 CefPostDelayedTask(TID_UI, base::BindOnce(TriggerAccelerator, window), in RunWindowAccelerator()
Dtest_window_delegate.cc110 CefPostTask(TID_UI, in OnWindowCreated()
116 CefPostDelayedTask(TID_UI, in OnWindowCreated()
186 CefPostTask(TID_UI, base::BindOnce(SignalEvent, event_)); in ~TestWindowDelegate()
/third_party/cef/include/wrapper/
Dcef_helpers.h48 #define CEF_REQUIRE_UI_THREAD() DCHECK(CefCurrentlyOn(TID_UI));
92 struct CefDeleteOnUIThread : public CefDeleteOnThread<TID_UI> {};
/third_party/cef/tests/cefsimple/
Dsimple_handler.cc132 if (!CefCurrentlyOn(TID_UI)) { in CloseAllBrowsers()
134 CefPostTask(TID_UI, base::BindOnce(&SimpleHandler::CloseAllBrowsers, this, in CloseAllBrowsers()

123