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

Side by Side Diff: chrome/browser/policy/mock_device_management_service.h

Issue 12209070: Fix cloud policy duplicate registrations issue. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_POLICY_MOCK_DEVICE_MANAGEMENT_SERVICE_H_ 5 #ifndef CHROME_BROWSER_POLICY_MOCK_DEVICE_MANAGEMENT_SERVICE_H_
6 #define CHROME_BROWSER_POLICY_MOCK_DEVICE_MANAGEMENT_SERVICE_H_ 6 #define CHROME_BROWSER_POLICY_MOCK_DEVICE_MANAGEMENT_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "chrome/browser/policy/device_management_service.h" 11 #include "chrome/browser/policy/device_management_service.h"
12 #include "chrome/browser/policy/proto/device_management_backend.pb.h" 12 #include "chrome/browser/policy/proto/device_management_backend.pb.h"
13 #include "testing/gmock/include/gmock/gmock.h" 13 #include "testing/gmock/include/gmock/gmock.h"
14 14
15 namespace policy { 15 namespace policy {
16 16
17 class MockDeviceManagementJob { 17 class MockDeviceManagementJob {
18 public: 18 public:
19 virtual ~MockDeviceManagementJob(); 19 virtual ~MockDeviceManagementJob();
20 virtual void RetryJob() = 0;
20 virtual void SendResponse( 21 virtual void SendResponse(
21 DeviceManagementStatus status, 22 DeviceManagementStatus status,
22 const enterprise_management::DeviceManagementResponse& response) = 0; 23 const enterprise_management::DeviceManagementResponse& response) = 0;
23 }; 24 };
24 25
25 class MockDeviceManagementService : public DeviceManagementService { 26 class MockDeviceManagementService : public DeviceManagementService {
26 public: 27 public:
27 MockDeviceManagementService(); 28 MockDeviceManagementService();
28 virtual ~MockDeviceManagementService(); 29 virtual ~MockDeviceManagementService();
29 30
(...skipping 23 matching lines...) Expand all
53 testing::Action<CreateJobFunction> CreateAsyncJob( 54 testing::Action<CreateJobFunction> CreateAsyncJob(
54 MockDeviceManagementJob** job); 55 MockDeviceManagementJob** job);
55 56
56 private: 57 private:
57 DISALLOW_COPY_AND_ASSIGN(MockDeviceManagementService); 58 DISALLOW_COPY_AND_ASSIGN(MockDeviceManagementService);
58 }; 59 };
59 60
60 } // namespace policy 61 } // namespace policy
61 62
62 #endif // CHROME_BROWSER_POLICY_MOCK_DEVICE_MANAGEMENT_SERVICE_H_ 63 #endif // CHROME_BROWSER_POLICY_MOCK_DEVICE_MANAGEMENT_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/mock_cloud_policy_client.cc ('k') | chrome/browser/policy/mock_device_management_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698