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

Side by Side Diff: components/policy/core/common/cloud/mock_cloud_policy_client.h

Issue 2728463004: Remove enterprise serial number recovery feature (Closed)
Patch Set: Removed access to removed fied in policy_testserver.py. 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_POLICY_CORE_COMMON_CLOUD_MOCK_CLOUD_POLICY_CLIENT_H_ 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_MOCK_CLOUD_POLICY_CLIENT_H_
6 #define COMPONENTS_POLICY_CORE_COMMON_CLOUD_MOCK_CLOUD_POLICY_CLIENT_H_ 6 #define COMPONENTS_POLICY_CORE_COMMON_CLOUD_MOCK_CLOUD_POLICY_CLIENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // Sets the status field. 53 // Sets the status field.
54 void SetStatus(DeviceManagementStatus status); 54 void SetStatus(DeviceManagementStatus status);
55 55
56 // Make the notification helpers public. 56 // Make the notification helpers public.
57 using CloudPolicyClient::NotifyPolicyFetched; 57 using CloudPolicyClient::NotifyPolicyFetched;
58 using CloudPolicyClient::NotifyRegistrationStateChanged; 58 using CloudPolicyClient::NotifyRegistrationStateChanged;
59 using CloudPolicyClient::NotifyClientError; 59 using CloudPolicyClient::NotifyClientError;
60 60
61 using CloudPolicyClient::dm_token_; 61 using CloudPolicyClient::dm_token_;
62 using CloudPolicyClient::client_id_; 62 using CloudPolicyClient::client_id_;
63 using CloudPolicyClient::submit_machine_id_;
64 using CloudPolicyClient::last_policy_timestamp_; 63 using CloudPolicyClient::last_policy_timestamp_;
65 using CloudPolicyClient::public_key_version_; 64 using CloudPolicyClient::public_key_version_;
66 using CloudPolicyClient::public_key_version_valid_; 65 using CloudPolicyClient::public_key_version_valid_;
67 using CloudPolicyClient::types_to_fetch_; 66 using CloudPolicyClient::types_to_fetch_;
68 using CloudPolicyClient::invalidation_version_; 67 using CloudPolicyClient::invalidation_version_;
69 using CloudPolicyClient::invalidation_payload_; 68 using CloudPolicyClient::invalidation_payload_;
70 using CloudPolicyClient::fetched_invalidation_version_; 69 using CloudPolicyClient::fetched_invalidation_version_;
71 70
72 private: 71 private:
73 DISALLOW_COPY_AND_ASSIGN(MockCloudPolicyClient); 72 DISALLOW_COPY_AND_ASSIGN(MockCloudPolicyClient);
74 }; 73 };
75 74
76 class MockCloudPolicyClientObserver : public CloudPolicyClient::Observer { 75 class MockCloudPolicyClientObserver : public CloudPolicyClient::Observer {
77 public: 76 public:
78 MockCloudPolicyClientObserver(); 77 MockCloudPolicyClientObserver();
79 virtual ~MockCloudPolicyClientObserver(); 78 virtual ~MockCloudPolicyClientObserver();
80 79
81 MOCK_METHOD1(OnPolicyFetched, void(CloudPolicyClient*)); 80 MOCK_METHOD1(OnPolicyFetched, void(CloudPolicyClient*));
82 MOCK_METHOD1(OnRegistrationStateChanged, void(CloudPolicyClient*)); 81 MOCK_METHOD1(OnRegistrationStateChanged, void(CloudPolicyClient*));
83 MOCK_METHOD1(OnRobotAuthCodesFetched, void(CloudPolicyClient*)); 82 MOCK_METHOD1(OnRobotAuthCodesFetched, void(CloudPolicyClient*));
84 MOCK_METHOD1(OnClientError, void(CloudPolicyClient*)); 83 MOCK_METHOD1(OnClientError, void(CloudPolicyClient*));
85 84
86 private: 85 private:
87 DISALLOW_COPY_AND_ASSIGN(MockCloudPolicyClientObserver); 86 DISALLOW_COPY_AND_ASSIGN(MockCloudPolicyClientObserver);
88 }; 87 };
89 88
90 } // namespace policy 89 } // namespace policy
91 90
92 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_MOCK_CLOUD_POLICY_CLIENT_H_ 91 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_MOCK_CLOUD_POLICY_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698