Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Unified Diff: extensions/browser/api/hid/hid_apitest.cc

Issue 771393002: Migrate HidServiceLinux and HidConnectionLinux to BrowserThread::UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Switched to an embedded thread checker. Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/browser/api/hid/hid_api.cc ('k') | extensions/browser/api/hid/hid_connection_resource.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/hid/hid_apitest.cc
diff --git a/extensions/browser/api/hid/hid_apitest.cc b/extensions/browser/api/hid/hid_apitest.cc
index ad916480be500fdc05917e182d03195fbff91c02..0f70ff7accc83b33abf9db7ea883543e3c681d46 100644
--- a/extensions/browser/api/hid/hid_apitest.cc
+++ b/extensions/browser/api/hid/hid_apitest.cc
@@ -169,12 +169,16 @@ class HidApiTest : public ShellApiTest {
public:
void SetUpOnMainThread() override {
ShellApiTest::SetUpOnMainThread();
+#if defined(OS_WIN)
+ // TODO(reillyg): Migrate Windows backend from FILE thread to UI thread.
base::RunLoop run_loop;
- BrowserThread::PostTaskAndReply(BrowserThread::FILE,
- FROM_HERE,
+ BrowserThread::PostTaskAndReply(BrowserThread::FILE, FROM_HERE,
base::Bind(&HidApiTest::SetUpService, this),
run_loop.QuitClosure());
run_loop.Run();
+#else
+ SetUpService();
+#endif
}
void SetUpService() { HidService::SetInstanceForTest(new MockHidService()); }
« no previous file with comments | « extensions/browser/api/hid/hid_api.cc ('k') | extensions/browser/api/hid/hid_connection_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698