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

Unified Diff: device/core/mock_device_client.cc

Issue 2417043002: Move device/core files to device/base directory. (Closed)
Patch Set: Fix ChromeOS build Created 4 years, 2 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/core/mock_device_client.h ('k') | device/hid/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/core/mock_device_client.cc
diff --git a/device/core/mock_device_client.cc b/device/core/mock_device_client.cc
deleted file mode 100644
index 8e82c37aa4b3b1814787304f1f7a9d434cd3308c..0000000000000000000000000000000000000000
--- a/device/core/mock_device_client.cc
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "device/core/mock_device_client.h"
-
-#include "device/hid/mock_hid_service.h"
-#include "device/usb/mock_usb_service.h"
-
-namespace device {
-
-MockDeviceClient::MockDeviceClient() {}
-
-MockDeviceClient::~MockDeviceClient() {}
-
-HidService* MockDeviceClient::GetHidService() {
- return hid_service();
-}
-
-UsbService* MockDeviceClient::GetUsbService() {
- return usb_service();
-}
-
-MockHidService* MockDeviceClient::hid_service() {
- if (!hid_service_)
- hid_service_.reset(new MockHidService());
- return hid_service_.get();
-}
-
-MockUsbService* MockDeviceClient::usb_service() {
- if (!usb_service_)
- usb_service_.reset(new MockUsbService());
- return usb_service_.get();
-}
-
-} // namespace device
« no previous file with comments | « device/core/mock_device_client.h ('k') | device/hid/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698