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

Side by Side Diff: chrome/browser/policy/mock_cloud_policy_client.h

Issue 12209070: Fix cloud policy duplicate registrations issue. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 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 | Annotate | Revision Log
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 CHROME_BROWSER_POLICY_MOCK_CLOUD_POLICY_CLIENT_H_ 5 #ifndef CHROME_BROWSER_POLICY_MOCK_CLOUD_POLICY_CLIENT_H_
6 #define CHROME_BROWSER_POLICY_MOCK_CLOUD_POLICY_CLIENT_H_ 6 #define CHROME_BROWSER_POLICY_MOCK_CLOUD_POLICY_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 using CloudPolicyClient::client_id_; 47 using CloudPolicyClient::client_id_;
48 using CloudPolicyClient::submit_machine_id_; 48 using CloudPolicyClient::submit_machine_id_;
49 using CloudPolicyClient::last_policy_timestamp_; 49 using CloudPolicyClient::last_policy_timestamp_;
50 using CloudPolicyClient::public_key_version_; 50 using CloudPolicyClient::public_key_version_;
51 using CloudPolicyClient::public_key_version_valid_; 51 using CloudPolicyClient::public_key_version_valid_;
52 52
53 private: 53 private:
54 DISALLOW_COPY_AND_ASSIGN(MockCloudPolicyClient); 54 DISALLOW_COPY_AND_ASSIGN(MockCloudPolicyClient);
55 }; 55 };
56 56
57 class MockCloudPolicyClientObserver : public CloudPolicyClient::Observer {
58 public:
59 MockCloudPolicyClientObserver();
60 virtual ~MockCloudPolicyClientObserver();
61
62 MOCK_METHOD1(OnPolicyFetched, void(CloudPolicyClient*));
63 MOCK_METHOD1(OnRegistrationStateChanged, void(CloudPolicyClient*));
64 MOCK_METHOD1(OnClientError, void(CloudPolicyClient*));
65
66 private:
67 DISALLOW_COPY_AND_ASSIGN(MockCloudPolicyClientObserver);
68 };
69
57 } // namespace policy 70 } // namespace policy
58 71
59 #endif // CHROME_BROWSER_POLICY_MOCK_CLOUD_POLICY_CLIENT_H_ 72 #endif // CHROME_BROWSER_POLICY_MOCK_CLOUD_POLICY_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/device_management_service_unittest.cc ('k') | chrome/browser/policy/mock_cloud_policy_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698