OLD | NEW |
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 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 class PolicyTestBase : public testing::Test { | 45 class PolicyTestBase : public testing::Test { |
46 public: | 46 public: |
47 PolicyTestBase(); | 47 PolicyTestBase(); |
48 virtual ~PolicyTestBase(); | 48 virtual ~PolicyTestBase(); |
49 | 49 |
50 // testing::Test: | 50 // testing::Test: |
51 virtual void TearDown() OVERRIDE; | 51 virtual void TearDown() OVERRIDE; |
52 | 52 |
53 protected: | 53 protected: |
54 // Create an actual IO loop (needed by FilePathWatcher). | 54 // Create an actual IO loop (needed by FilePathWatcher). |
55 MessageLoopForIO loop_; | 55 base::MessageLoopForIO loop_; |
56 | 56 |
57 private: | 57 private: |
58 content::TestBrowserThread ui_thread_; | 58 content::TestBrowserThread ui_thread_; |
59 content::TestBrowserThread file_thread_; | 59 content::TestBrowserThread file_thread_; |
60 | 60 |
61 DISALLOW_COPY_AND_ASSIGN(PolicyTestBase); | 61 DISALLOW_COPY_AND_ASSIGN(PolicyTestBase); |
62 }; | 62 }; |
63 | 63 |
64 // An interface for creating a test policy provider and creating a policy | 64 // An interface for creating a test policy provider and creating a policy |
65 // provider instance for testing. Used as the parameter to the abstract | 65 // provider instance for testing. Used as the parameter to the abstract |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 Configuration3rdPartyPolicyProviderTest(); | 145 Configuration3rdPartyPolicyProviderTest(); |
146 virtual ~Configuration3rdPartyPolicyProviderTest(); | 146 virtual ~Configuration3rdPartyPolicyProviderTest(); |
147 | 147 |
148 private: | 148 private: |
149 DISALLOW_COPY_AND_ASSIGN(Configuration3rdPartyPolicyProviderTest); | 149 DISALLOW_COPY_AND_ASSIGN(Configuration3rdPartyPolicyProviderTest); |
150 }; | 150 }; |
151 | 151 |
152 } // namespace policy | 152 } // namespace policy |
153 | 153 |
154 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_TEST_H_ | 154 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_TEST_H_ |
OLD | NEW |