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

Unified Diff: chrome/browser/policy/cloud/mock_cloud_external_data_manager.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_external_data_manager.h
diff --git a/chrome/browser/policy/cloud/mock_cloud_external_data_manager.h b/chrome/browser/policy/cloud/mock_cloud_external_data_manager.h
deleted file mode 100644
index c1e3c10e5a760d91ce4a2b142aebede5826c1fac..0000000000000000000000000000000000000000
--- a/chrome/browser/policy/cloud/mock_cloud_external_data_manager.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2013 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_EXTERNAL_DATA_MANAGER_H_
-#define CHROME_BROWSER_POLICY_CLOUD_MOCK_CLOUD_EXTERNAL_DATA_MANAGER_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
-#include "chrome/browser/policy/cloud/cloud_external_data_manager.h"
-#include "components/policy/core/common/external_data_fetcher.h"
-#include "testing/gmock/include/gmock/gmock.h"
-
-namespace net {
-class URLRequestContextGetter;
-}
-
-namespace policy {
-
-class ExternalDataFetcher;
-
-class MockCloudExternalDataManager : public CloudExternalDataManager {
- public:
- MockCloudExternalDataManager();
- virtual ~MockCloudExternalDataManager();
-
- MOCK_METHOD0(OnPolicyStoreLoaded, void(void));
- MOCK_METHOD1(Connect, void(scoped_refptr<net::URLRequestContextGetter>));
- MOCK_METHOD0(Disconnect, void(void));
- MOCK_METHOD2(Fetch, void(const std::string&,
- const ExternalDataFetcher::FetchCallback&));
-
- scoped_ptr<ExternalDataFetcher> CreateExternalDataFetcher(
- const std::string& policy);
-
- private:
- DISALLOW_COPY_AND_ASSIGN(MockCloudExternalDataManager);
-};
-
-} // namespace policy
-
-#endif // CHROME_BROWSER_POLICY_CLOUD_MOCK_CLOUD_EXTERNAL_DATA_MANAGER_H_
« no previous file with comments | « chrome/browser/policy/cloud/message_util.cc ('k') | chrome/browser/policy/cloud/mock_cloud_external_data_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698