| OLD | NEW |
| (Empty) |
| 1 // Copyright 2017 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 #ifndef CHROMEOS_COMPONENTS_TETHER_MOCK_HOST_SCAN_DEVICE_PRIORITIZER_H_ | |
| 6 #define CHROMEOS_COMPONENTS_TETHER_MOCK_HOST_SCAN_DEVICE_PRIORITIZER_H_ | |
| 7 | |
| 8 #include <vector> | |
| 9 | |
| 10 #include "base/macros.h" | |
| 11 #include "chromeos/components/tether/host_scan_device_prioritizer.h" | |
| 12 #include "components/cryptauth/remote_device.h" | |
| 13 #include "testing/gmock/include/gmock/gmock.h" | |
| 14 | |
| 15 namespace chromeos { | |
| 16 | |
| 17 namespace tether { | |
| 18 | |
| 19 // Test double for HostScanDevicePrioritizer. | |
| 20 class MockHostScanDevicePrioritizer : public HostScanDevicePrioritizer { | |
| 21 public: | |
| 22 MockHostScanDevicePrioritizer(); | |
| 23 ~MockHostScanDevicePrioritizer() override; | |
| 24 | |
| 25 MOCK_CONST_METHOD1(SortByHostScanOrder, | |
| 26 void(std::vector<cryptauth::RemoteDevice>*)); | |
| 27 | |
| 28 private: | |
| 29 DISALLOW_COPY_AND_ASSIGN(MockHostScanDevicePrioritizer); | |
| 30 }; | |
| 31 | |
| 32 } // namespace tether | |
| 33 | |
| 34 } // namespace chromeos | |
| 35 | |
| 36 #endif // CHROMEOS_COMPONENTS_TETHER_MOCK_HOST_SCAN_DEVICE_PRIORITIZER_H_ | |
| OLD | NEW |