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

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

Issue 9109009: Introduce CloudPolicyClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix clang build. Created 8 years, 12 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/mock_device_management_service.h
diff --git a/chrome/browser/policy/mock_device_management_service.h b/chrome/browser/policy/mock_device_management_service.h
index 8638f6a7a0a33457f4a1e4fbb2453d0852473fd6..904610b74530ac05b50d49e2eab0e44a2f7e2bfb 100644
--- a/chrome/browser/policy/mock_device_management_service.h
+++ b/chrome/browser/policy/mock_device_management_service.h
@@ -12,6 +12,8 @@
namespace policy {
+class MockDeviceManagementService;
+
class MockDeviceManagementService : public DeviceManagementService {
public:
MockDeviceManagementService();
@@ -21,7 +23,15 @@ class MockDeviceManagementService : public DeviceManagementService {
DeviceManagementRequestJob::JobType);
MOCK_METHOD1(CreateJob, CreateJobFunction);
- MOCK_METHOD1(StartJob, void(DeviceManagementRequestJob*));
+ MOCK_METHOD7(
+ StartJob,
+ void(const std::string& request_type,
+ const std::string& gaia_token,
+ const std::string& oauth_token,
+ const std::string& dm_token,
+ const std::string& user_affiliation,
+ const std::string& client_id,
+ const enterprise_management::DeviceManagementRequest& request));
// Creates a gmock action that will make the job succeed.
testing::Action<CreateJobFunction> SucceedJob(

Powered by Google App Engine
This is Rietveld 408576698