OLD | NEW |
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/usb/mojo/device_manager_impl.h" | 5 #include "device/usb/mojo/device_manager_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <set> | 10 #include <set> |
11 #include <string> | 11 #include <string> |
12 #include <utility> | 12 #include <utility> |
13 | 13 |
14 #include "base/barrier_closure.h" | 14 #include "base/barrier_closure.h" |
15 #include "base/bind.h" | 15 #include "base/bind.h" |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
17 #include "base/message_loop/message_loop.h" | 17 #include "base/message_loop/message_loop.h" |
18 #include "base/run_loop.h" | 18 #include "base/run_loop.h" |
19 #include "base/thread_task_runner_handle.h" | 19 #include "base/threading/thread_task_runner_handle.h" |
20 #include "device/core/mock_device_client.h" | 20 #include "device/core/mock_device_client.h" |
21 #include "device/usb/mock_usb_device.h" | 21 #include "device/usb/mock_usb_device.h" |
22 #include "device/usb/mock_usb_device_handle.h" | 22 #include "device/usb/mock_usb_device_handle.h" |
23 #include "device/usb/mock_usb_service.h" | 23 #include "device/usb/mock_usb_service.h" |
24 #include "device/usb/mojo/device_impl.h" | 24 #include "device/usb/mojo/device_impl.h" |
25 #include "device/usb/mojo/mock_permission_provider.h" | 25 #include "device/usb/mojo/mock_permission_provider.h" |
26 #include "testing/gtest/include/gtest/gtest.h" | 26 #include "testing/gtest/include/gtest/gtest.h" |
27 | 27 |
28 using ::testing::Invoke; | 28 using ::testing::Invoke; |
29 using ::testing::_; | 29 using ::testing::_; |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 .WillOnce(ExpectGuidAndThen(device0->guid(), barrier)) | 213 .WillOnce(ExpectGuidAndThen(device0->guid(), barrier)) |
214 .WillOnce(ExpectGuidAndThen(device2->guid(), barrier)); | 214 .WillOnce(ExpectGuidAndThen(device2->guid(), barrier)); |
215 EXPECT_CALL(mock_client, DoOnDeviceAdded(_)) | 215 EXPECT_CALL(mock_client, DoOnDeviceAdded(_)) |
216 .WillOnce(ExpectGuidAndThen(device3->guid(), barrier)); | 216 .WillOnce(ExpectGuidAndThen(device3->guid(), barrier)); |
217 loop.Run(); | 217 loop.Run(); |
218 } | 218 } |
219 } | 219 } |
220 | 220 |
221 } // namespace usb | 221 } // namespace usb |
222 } // namespace device | 222 } // namespace device |
OLD | NEW |