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

Unified Diff: device/hid/hid_connection_unittest.cc

Issue 1312993008: Manage HidService lifetime in DeviceClient implementations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_usb_service_get_instance
Patch Set: Created 5 years, 4 months 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 | « device/device_tests.gyp ('k') | device/hid/hid_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/hid/hid_connection_unittest.cc
diff --git a/device/hid/hid_connection_unittest.cc b/device/hid/hid_connection_unittest.cc
index c77d7d320eb4000b2ff0b8ace1945928952de42f..9552aa461123cebe9546c0fda80f68162d805dd6 100644
--- a/device/hid/hid_connection_unittest.cc
+++ b/device/hid/hid_connection_unittest.cc
@@ -153,7 +153,7 @@ class HidConnectionTest : public testing::Test {
io_thread_.reset(new base::TestIOThread(base::TestIOThread::kAutoStart));
device_client_.reset(new TestDeviceClient(io_thread_->task_runner()));
- service_ = HidService::GetInstance(io_thread_->task_runner());
+ service_ = DeviceClient::Get()->GetHidService();
ASSERT_TRUE(service_);
test_gadget_ = UsbTestGadget::Claim(io_thread_->task_runner());
« no previous file with comments | « device/device_tests.gyp ('k') | device/hid/hid_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698