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

Side by Side Diff: device/hid/mock_hid_service.cc

Issue 2482463002: Remove DeviceMonitorLinux::WillDestroyCurrentMessageLoop(). (Closed)
Patch Set: CR achuithb #24 Created 4 years, 1 month 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/hid/input_service_linux.cc ('k') | device/test/test_device_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "device/hid/mock_hid_service.h" 5 #include "device/hid/mock_hid_service.h"
6 6
7 namespace device { 7 namespace device {
8 8
9 MockHidService::MockHidService() {} 9 MockHidService::MockHidService() {}
10 10
11 MockHidService::~MockHidService() {} 11 MockHidService::~MockHidService() {
12 // Shutdown() must be called before the base class destructor.
13 Shutdown();
14 }
12 15
13 void MockHidService::AddDevice(scoped_refptr<HidDeviceInfo> info) { 16 void MockHidService::AddDevice(scoped_refptr<HidDeviceInfo> info) {
14 HidService::AddDevice(info); 17 HidService::AddDevice(info);
15 } 18 }
16 19
17 void MockHidService::RemoveDevice(const HidDeviceId& device_id) { 20 void MockHidService::RemoveDevice(const HidDeviceId& device_id) {
18 HidService::RemoveDevice(device_id); 21 HidService::RemoveDevice(device_id);
19 } 22 }
20 23
21 void MockHidService::FirstEnumerationComplete() { 24 void MockHidService::FirstEnumerationComplete() {
22 HidService::FirstEnumerationComplete(); 25 HidService::FirstEnumerationComplete();
23 } 26 }
24 27
25 const std::map<HidDeviceId, scoped_refptr<HidDeviceInfo>>& 28 const std::map<HidDeviceId, scoped_refptr<HidDeviceInfo>>&
26 MockHidService::devices() const { 29 MockHidService::devices() const {
27 return HidService::devices(); 30 return HidService::devices();
28 } 31 }
29 32
30 } // namespace device 33 } // namespace device
OLDNEW
« no previous file with comments | « device/hid/input_service_linux.cc ('k') | device/test/test_device_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698