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

Side by Side Diff: chromeos/components/tether/mock_host_scan_device_prioritizer.h

Issue 2844973002: [CrOS Tether] Create TetherHostResponseRecorder, which records ConnectTetheringResponses and Tether… (Closed)
Patch Set: Changed "Connectable" wording to "Connected". Created 3 years, 7 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
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 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 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 #ifndef CHROMEOS_COMPONENTS_TETHER_MOCK_HOST_SCAN_DEVICE_PRIORITIZER_H_ 5 #ifndef CHROMEOS_COMPONENTS_TETHER_MOCK_HOST_SCAN_DEVICE_PRIORITIZER_H_
6 #define CHROMEOS_COMPONENTS_TETHER_MOCK_HOST_SCAN_DEVICE_PRIORITIZER_H_ 6 #define CHROMEOS_COMPONENTS_TETHER_MOCK_HOST_SCAN_DEVICE_PRIORITIZER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "chromeos/components/tether/host_scan_device_prioritizer.h" 11 #include "chromeos/components/tether/host_scan_device_prioritizer.h"
12 #include "components/cryptauth/remote_device.h" 12 #include "components/cryptauth/remote_device.h"
13 #include "testing/gmock/include/gmock/gmock.h" 13 #include "testing/gmock/include/gmock/gmock.h"
14 14
15 namespace chromeos { 15 namespace chromeos {
16 16
17 namespace tether { 17 namespace tether {
18 18
19 // Test double for HostScanDevicePrioritizer. 19 // Test double for HostScanDevicePrioritizer.
20 class MockHostScanDevicePrioritizer : public HostScanDevicePrioritizer { 20 class MockHostScanDevicePrioritizer : public HostScanDevicePrioritizer {
21 public: 21 public:
22 MockHostScanDevicePrioritizer(); 22 MockHostScanDevicePrioritizer();
23 ~MockHostScanDevicePrioritizer() override; 23 ~MockHostScanDevicePrioritizer() override;
24 24
25 MOCK_METHOD1(RecordSuccessfulTetherAvailabilityResponse,
26 void(const cryptauth::RemoteDevice&));
27 MOCK_METHOD1(RecordSuccessfulConnectTetheringResponse,
28 void(const cryptauth::RemoteDevice&));
29 MOCK_CONST_METHOD1(SortByHostScanOrder, 25 MOCK_CONST_METHOD1(SortByHostScanOrder,
30 void(std::vector<cryptauth::RemoteDevice>*)); 26 void(std::vector<cryptauth::RemoteDevice>*));
31 27
32 private: 28 private:
33 DISALLOW_COPY_AND_ASSIGN(MockHostScanDevicePrioritizer); 29 DISALLOW_COPY_AND_ASSIGN(MockHostScanDevicePrioritizer);
34 }; 30 };
35 31
36 } // namespace tether 32 } // namespace tether
37 33
38 } // namespace chromeos 34 } // namespace chromeos
39 35
40 #endif // CHROMEOS_COMPONENTS_TETHER_MOCK_HOST_SCAN_DEVICE_PRIORITIZER_H_ 36 #endif // CHROMEOS_COMPONENTS_TETHER_MOCK_HOST_SCAN_DEVICE_PRIORITIZER_H_
OLDNEW
« no previous file with comments | « chromeos/components/tether/initializer.cc ('k') | chromeos/components/tether/mock_tether_host_response_recorder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698