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

Unified Diff: chrome/browser/policy/cloud/mock_cloud_policy_store.h

Issue 109743002: Move policy code into components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar fixes Created 7 years 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/cloud/mock_cloud_policy_store.h
diff --git a/chrome/browser/policy/cloud/mock_cloud_policy_store.h b/chrome/browser/policy/cloud/mock_cloud_policy_store.h
deleted file mode 100644
index 684f37c798ad3376d7db876fbff94218ce144843..0000000000000000000000000000000000000000
--- a/chrome/browser/policy/cloud/mock_cloud_policy_store.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_POLICY_CLOUD_MOCK_CLOUD_POLICY_STORE_H_
-#define CHROME_BROWSER_POLICY_CLOUD_MOCK_CLOUD_POLICY_STORE_H_
-
-#include "chrome/browser/policy/cloud/cloud_policy_store.h"
-#include "testing/gmock/include/gmock/gmock.h"
-
-namespace policy {
-
-class MockCloudPolicyStore : public CloudPolicyStore {
- public:
- MockCloudPolicyStore();
- virtual ~MockCloudPolicyStore();
-
- MOCK_METHOD1(Store, void(const enterprise_management::PolicyFetchResponse&));
- MOCK_METHOD0(Load, void(void));
-
- // Publish the protected members.
- using CloudPolicyStore::NotifyStoreLoaded;
- using CloudPolicyStore::NotifyStoreError;
-
- using CloudPolicyStore::policy_map_;
- using CloudPolicyStore::policy_;
- using CloudPolicyStore::status_;
- using CloudPolicyStore::invalidation_version_;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(MockCloudPolicyStore);
-};
-
-class MockCloudPolicyStoreObserver : public CloudPolicyStore::Observer {
- public:
- MockCloudPolicyStoreObserver();
- virtual ~MockCloudPolicyStoreObserver();
-
- MOCK_METHOD1(OnStoreLoaded, void(CloudPolicyStore* store));
- MOCK_METHOD1(OnStoreError, void(CloudPolicyStore* store));
-
- private:
- DISALLOW_COPY_AND_ASSIGN(MockCloudPolicyStoreObserver);
-};
-
-} // namespace policy
-
-#endif // CHROME_BROWSER_POLICY_CLOUD_MOCK_CLOUD_POLICY_STORE_H_
« no previous file with comments | « chrome/browser/policy/cloud/mock_cloud_policy_client.cc ('k') | chrome/browser/policy/cloud/mock_cloud_policy_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698