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

Unified Diff: chrome/browser/policy/configuration_policy_provider_test.h

Issue 10496013: Implement the mac policy provider based on the AsyncPolicyLoader. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Renamed to PolicyLoaderMac Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/policy/configuration_policy_provider_test.h
diff --git a/chrome/browser/policy/configuration_policy_provider_test.h b/chrome/browser/policy/configuration_policy_provider_test.h
index 126ca5e3500bae41c50c80d63e79a7897e76842a..a24519c4d89196218f57af5f02dfba57fc307a62 100644
--- a/chrome/browser/policy/configuration_policy_provider_test.h
+++ b/chrome/browser/policy/configuration_policy_provider_test.h
@@ -12,7 +12,7 @@
#include "base/callback_forward.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop.h"
-#include "chrome/browser/policy/asynchronous_policy_test_base.h"
+#include "chrome/browser/policy/policy_constants.h"
#include "content/public/test/test_browser_thread.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -43,6 +43,25 @@ extern const PolicyDefinitionList kList;
} // namespace test_policy_definitions
+class PolicyTestBase : public testing::Test {
+ public:
+ PolicyTestBase();
+ virtual ~PolicyTestBase();
+
+ // testing::Test:
+ virtual void TearDown() OVERRIDE;
+
+ protected:
+ // Create an actual IO loop (needed by FilePathWatcher).
+ MessageLoopForIO loop_;
+
+ private:
+ content::TestBrowserThread ui_thread_;
+ content::TestBrowserThread file_thread_;
+
+ DISALLOW_COPY_AND_ASSIGN(PolicyTestBase);
+};
+
// An interface for creating a test policy provider and creating a policy
// provider instance for testing. Used as the parameter to the abstract
// ConfigurationPolicyProviderTest below.
@@ -92,7 +111,7 @@ typedef PolicyProviderTestHarness* (*CreatePolicyProviderTestHarness)();
// policy provider implementation, passing in a suitable harness factory
// function as the test parameter.
class ConfigurationPolicyProviderTest
- : public AsynchronousPolicyTestBase,
+ : public PolicyTestBase,
public testing::WithParamInterface<CreatePolicyProviderTestHarness> {
protected:
ConfigurationPolicyProviderTest();
« no previous file with comments | « chrome/browser/policy/configuration_policy_provider_mac.h ('k') | chrome/browser/policy/configuration_policy_provider_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698