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

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

Issue 9703098: Remove "base/values.h" import from "base/location.h", fix up downstream files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix one more file on ChromiumOS Created 8 years, 9 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_CONFIGURATION_POLICY_PROVIDER_TEST_H_ 5 #ifndef CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_TEST_H_
6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_TEST_H_ 6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_TEST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/callback_forward.h" 12 #include "base/callback_forward.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/message_loop.h" 14 #include "base/message_loop.h"
15 #include "chrome/browser/policy/asynchronous_policy_test_base.h" 15 #include "chrome/browser/policy/asynchronous_policy_test_base.h"
16 #include "content/test/test_browser_thread.h" 16 #include "content/test/test_browser_thread.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 18
19 namespace base { 19 namespace base {
20 class ListValue; 20 class ListValue;
21 class Value;
21 } 22 }
22 23
23 namespace policy { 24 namespace policy {
24 25
25 class AsynchronousPolicyProvider; 26 class AsynchronousPolicyProvider;
26 struct PolicyDefinitionList; 27 struct PolicyDefinitionList;
27 28
28 // A stripped-down policy definition list that contains entries for the 29 // A stripped-down policy definition list that contains entries for the
29 // different policy setting types supported. 30 // different policy setting types supported.
30 namespace test_policy_definitions { 31 namespace test_policy_definitions {
(...skipping 26 matching lines...) Expand all
57 58
58 // Helpers to configure the environment the policy provider reads from. 59 // Helpers to configure the environment the policy provider reads from.
59 virtual void InstallEmptyPolicy() = 0; 60 virtual void InstallEmptyPolicy() = 0;
60 virtual void InstallStringPolicy(const std::string& policy_name, 61 virtual void InstallStringPolicy(const std::string& policy_name,
61 const std::string& policy_value) = 0; 62 const std::string& policy_value) = 0;
62 virtual void InstallIntegerPolicy(const std::string& policy_name, 63 virtual void InstallIntegerPolicy(const std::string& policy_name,
63 int policy_value) = 0; 64 int policy_value) = 0;
64 virtual void InstallBooleanPolicy(const std::string& policy_name, 65 virtual void InstallBooleanPolicy(const std::string& policy_name,
65 bool policy_value) = 0; 66 bool policy_value) = 0;
66 virtual void InstallStringListPolicy(const std::string& policy_name, 67 virtual void InstallStringListPolicy(const std::string& policy_name,
67 const ListValue* policy_value) = 0; 68 const base::ListValue* policy_value) = 0;
68 69
69 private: 70 private:
70 DISALLOW_COPY_AND_ASSIGN(PolicyProviderTestHarness); 71 DISALLOW_COPY_AND_ASSIGN(PolicyProviderTestHarness);
71 }; 72 };
72 73
73 // A factory method for creating a test harness. 74 // A factory method for creating a test harness.
74 typedef PolicyProviderTestHarness* (*CreatePolicyProviderTestHarness)(); 75 typedef PolicyProviderTestHarness* (*CreatePolicyProviderTestHarness)();
75 76
76 // Abstract policy provider test. This is meant to be instantiated for each 77 // Abstract policy provider test. This is meant to be instantiated for each
77 // policy provider implementation, passing in a suitable harness factory 78 // policy provider implementation, passing in a suitable harness factory
(...skipping 17 matching lines...) Expand all
95 scoped_ptr<PolicyProviderTestHarness> test_harness_; 96 scoped_ptr<PolicyProviderTestHarness> test_harness_;
96 scoped_ptr<AsynchronousPolicyProvider> provider_; 97 scoped_ptr<AsynchronousPolicyProvider> provider_;
97 98
98 private: 99 private:
99 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyProviderTest); 100 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyProviderTest);
100 }; 101 };
101 102
102 } // namespace policy 103 } // namespace policy
103 104
104 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_TEST_H_ 105 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_TEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/user_script_listener.h ('k') | chrome/browser/printing/print_system_task_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698