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

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

Issue 7298012: Consolidate data storage and notifications in the cloud policy subsystem (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_TESTING_CLOUD_POLICY_SUBSYSTEM_H_ 5 #ifndef CHROME_BROWSER_POLICY_TESTING_CLOUD_POLICY_SUBSYSTEM_H_
6 #define CHROME_BROWSER_POLICY_TESTING_CLOUD_POLICY_SUBSYSTEM_H_ 6 #define CHROME_BROWSER_POLICY_TESTING_CLOUD_POLICY_SUBSYSTEM_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/policy/cloud_policy_subsystem.h" 9 #include "chrome/browser/policy/cloud_policy_subsystem.h"
10 10
11 namespace policy { 11 namespace policy {
12 12
13 class EventLogger; 13 class EventLogger;
14 14
15 // A CloudPolicySubsystem for testing: it uses EventLogger to issue delayed 15 // A CloudPolicySubsystem for testing: it uses EventLogger to issue delayed
16 // tasks with 0 effective delay, and log the times of their executions. 16 // tasks with 0 effective delay, and log the times of their executions.
17 class TestingCloudPolicySubsystem : public CloudPolicySubsystem { 17 class TestingCloudPolicySubsystem : public CloudPolicySubsystem {
18 public: 18 public:
19 // Takes ownership of |policy_cache|. 19 // Takes ownership of |policy_cache|.
20 TestingCloudPolicySubsystem(CloudPolicyIdentityStrategy* identity_strategy, 20 TestingCloudPolicySubsystem(CloudPolicyData* data,
21 CloudPolicyCacheBase* policy_cache, 21 CloudPolicyCacheBase* policy_cache,
22 const std::string& device_management_url, 22 const std::string& device_management_url,
23 EventLogger* logger); 23 EventLogger* logger);
24 24
25 private: 25 private:
26 virtual void CreateDeviceTokenFetcher() OVERRIDE; 26 virtual void CreateDeviceTokenFetcher() OVERRIDE;
27 virtual void CreateCloudPolicyController() OVERRIDE; 27 virtual void CreateCloudPolicyController() OVERRIDE;
28 28
29 EventLogger* logger_; 29 EventLogger* logger_;
30 30
31 DISALLOW_COPY_AND_ASSIGN(TestingCloudPolicySubsystem); 31 DISALLOW_COPY_AND_ASSIGN(TestingCloudPolicySubsystem);
32 }; 32 };
33 33
34 } // namespace Policy 34 } // namespace Policy
35 35
36 #endif // CHROME_BROWSER_POLICY_TESTING_CLOUD_POLICY_SUBSYSTEM_H_ 36 #endif // CHROME_BROWSER_POLICY_TESTING_CLOUD_POLICY_SUBSYSTEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698