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

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

Issue 25690003: Refactored the DeviceManagementService to get its parameters from a delegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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/cloud/mock_device_management_service.h
diff --git a/chrome/browser/policy/cloud/mock_device_management_service.h b/chrome/browser/policy/cloud/mock_device_management_service.h
index 7eded9aa01f44baae57123ec508e347f6354fbc3..3b4e0e042569bf2f2d3a6e8dcefe3cb4d8e49d31 100644
--- a/chrome/browser/policy/cloud/mock_device_management_service.h
+++ b/chrome/browser/policy/cloud/mock_device_management_service.h
@@ -23,6 +23,25 @@ class MockDeviceManagementJob {
const enterprise_management::DeviceManagementResponse& response) = 0;
};
+class MockDeviceManagementServiceConfiguration
+ : public DeviceManagementService::Configuration {
+ public:
+ MockDeviceManagementServiceConfiguration();
+ explicit MockDeviceManagementServiceConfiguration(
+ const std::string& server_url);
+ virtual ~MockDeviceManagementServiceConfiguration();
+
+ virtual std::string GetServerUrl() OVERRIDE;
+ virtual std::string GetUserAgent() OVERRIDE;
+ virtual std::string GetAgentParameter() OVERRIDE;
+ virtual std::string GetPlatformParameter() OVERRIDE;
+
+ private:
+ const std::string server_url_;
+
+ DISALLOW_COPY_AND_ASSIGN(MockDeviceManagementServiceConfiguration);
+};
+
class MockDeviceManagementService : public DeviceManagementService {
public:
MockDeviceManagementService();

Powered by Google App Engine
This is Rietveld 408576698