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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « device/core/mock_device_client.h ('k') | device/hid/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "device/core/mock_device_client.h"
6
7 #include "device/hid/mock_hid_service.h"
8 #include "device/usb/mock_usb_service.h"
9
10 namespace device {
11
12 MockDeviceClient::MockDeviceClient() {}
13
14 MockDeviceClient::~MockDeviceClient() {}
15
16 HidService* MockDeviceClient::GetHidService() {
17 return hid_service();
18 }
19
20 UsbService* MockDeviceClient::GetUsbService() {
21 return usb_service();
22 }
23
24 MockHidService* MockDeviceClient::hid_service() {
25 if (!hid_service_)
26 hid_service_.reset(new MockHidService());
27 return hid_service_.get();
28 }
29
30 MockUsbService* MockDeviceClient::usb_service() {
31 if (!usb_service_)
32 usb_service_.reset(new MockUsbService());
33 return usb_service_.get();
34 }
35
36 } // namespace device
OLDNEW
« 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