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/threading/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/base/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 "mojo/public/cpp/bindings/binding.h" | 26 #include "mojo/public/cpp/bindings/binding.h" |
27 #include "testing/gtest/include/gtest/gtest.h" | 27 #include "testing/gtest/include/gtest/gtest.h" |
28 | 28 |
29 using ::testing::Invoke; | 29 using ::testing::Invoke; |
30 using ::testing::_; | 30 using ::testing::_; |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 .WillOnce(ExpectGuidAndThen(device0->guid(), barrier)) | 215 .WillOnce(ExpectGuidAndThen(device0->guid(), barrier)) |
216 .WillOnce(ExpectGuidAndThen(device2->guid(), barrier)); | 216 .WillOnce(ExpectGuidAndThen(device2->guid(), barrier)); |
217 EXPECT_CALL(mock_client, DoOnDeviceAdded(_)) | 217 EXPECT_CALL(mock_client, DoOnDeviceAdded(_)) |
218 .WillOnce(ExpectGuidAndThen(device3->guid(), barrier)); | 218 .WillOnce(ExpectGuidAndThen(device3->guid(), barrier)); |
219 loop.Run(); | 219 loop.Run(); |
220 } | 220 } |
221 } | 221 } |
222 | 222 |
223 } // namespace usb | 223 } // namespace usb |
224 } // namespace device | 224 } // namespace device |
OLD | NEW |