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

Side by Side Diff: components/cryptauth/mock_cryptauth_client.h

Issue 2888053003: Network traffic annotation added to OAuth2ApiCallFlow and its subclasses. (Closed)
Patch Set: Annotations updated. Created 3 years, 5 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 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 #ifndef COMPONENTS_CRYPTAUTH_MOCK_CRYPTAUTH_CLIENT_H_ 5 #ifndef COMPONENTS_CRYPTAUTH_MOCK_CRYPTAUTH_CLIENT_H_
6 #define COMPONENTS_CRYPTAUTH_MOCK_CRYPTAUTH_CLIENT_H_ 6 #define COMPONENTS_CRYPTAUTH_MOCK_CRYPTAUTH_CLIENT_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/observer_list.h" 9 #include "base/observer_list.h"
10 #include "components/cryptauth/cryptauth_client.h" 10 #include "components/cryptauth/cryptauth_client.h"
11 #include "components/cryptauth/proto/cryptauth_api.pb.h" 11 #include "components/cryptauth/proto/cryptauth_api.pb.h"
12 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
13 13
14 namespace cryptauth { 14 namespace cryptauth {
15 15
16 class MockCryptAuthClient : public CryptAuthClient { 16 class MockCryptAuthClient : public CryptAuthClient {
17 public: 17 public:
18 MockCryptAuthClient(); 18 MockCryptAuthClient();
19 ~MockCryptAuthClient() override; 19 ~MockCryptAuthClient() override;
20 20
21 // CryptAuthClient: 21 // CryptAuthClient:
22 MOCK_METHOD3(GetMyDevices, 22 MOCK_METHOD4(GetMyDevices,
23 void(const GetMyDevicesRequest& request, 23 void(const GetMyDevicesRequest& request,
24 const GetMyDevicesCallback& callback, 24 const GetMyDevicesCallback& callback,
25 const ErrorCallback& error_callback)); 25 const ErrorCallback& error_callback,
26 const net::PartialNetworkTrafficAnnotationTag&
27 partial_traffic_annotation));
26 MOCK_METHOD3(FindEligibleUnlockDevices, 28 MOCK_METHOD3(FindEligibleUnlockDevices,
27 void(const FindEligibleUnlockDevicesRequest& request, 29 void(const FindEligibleUnlockDevicesRequest& request,
28 const FindEligibleUnlockDevicesCallback& callback, 30 const FindEligibleUnlockDevicesCallback& callback,
29 const ErrorCallback& error_callback)); 31 const ErrorCallback& error_callback));
30 MOCK_METHOD3(SendDeviceSyncTickle, 32 MOCK_METHOD4(SendDeviceSyncTickle,
31 void(const SendDeviceSyncTickleRequest& request, 33 void(const SendDeviceSyncTickleRequest& request,
32 const SendDeviceSyncTickleCallback& callback, 34 const SendDeviceSyncTickleCallback& callback,
33 const ErrorCallback& error_callback)); 35 const ErrorCallback& error_callback,
36 const net::PartialNetworkTrafficAnnotationTag&
37 partial_traffic_annotation));
34 MOCK_METHOD3(ToggleEasyUnlock, 38 MOCK_METHOD3(ToggleEasyUnlock,
35 void(const ToggleEasyUnlockRequest& request, 39 void(const ToggleEasyUnlockRequest& request,
36 const ToggleEasyUnlockCallback& callback, 40 const ToggleEasyUnlockCallback& callback,
37 const ErrorCallback& error_callback)); 41 const ErrorCallback& error_callback));
38 MOCK_METHOD3(SetupEnrollment, 42 MOCK_METHOD3(SetupEnrollment,
39 void(const SetupEnrollmentRequest& request, 43 void(const SetupEnrollmentRequest& request,
40 const SetupEnrollmentCallback& callback, 44 const SetupEnrollmentCallback& callback,
41 const ErrorCallback& error_callback)); 45 const ErrorCallback& error_callback));
42 MOCK_METHOD3(FinishEnrollment, 46 MOCK_METHOD3(FinishEnrollment,
43 void(const FinishEnrollmentRequest& request, 47 void(const FinishEnrollmentRequest& request,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 83
80 // Observers of the factory. 84 // Observers of the factory.
81 base::ObserverList<Observer> observer_list_; 85 base::ObserverList<Observer> observer_list_;
82 86
83 DISALLOW_COPY_AND_ASSIGN(MockCryptAuthClientFactory); 87 DISALLOW_COPY_AND_ASSIGN(MockCryptAuthClientFactory);
84 }; 88 };
85 89
86 } // namespace cryptauth 90 } // namespace cryptauth
87 91
88 #endif // COMPONENTS_CRYPTAUTH_MOCK_CRYPTAUTH_CLIENT_H_ 92 #endif // COMPONENTS_CRYPTAUTH_MOCK_CRYPTAUTH_CLIENT_H_
OLDNEW
« no previous file with comments | « components/cryptauth/cryptauth_device_manager_unittest.cc ('k') | components/proximity_auth/webui/reachable_phone_flow.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698