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

Unified Diff: components/policy/core/common/cloud/mock_cloud_policy_client.h

Issue 879233003: Initial RemoteCommandService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remote-commands
Patch Set: more fixes Created 5 years, 9 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: components/policy/core/common/cloud/mock_cloud_policy_client.h
diff --git a/components/policy/core/common/cloud/mock_cloud_policy_client.h b/components/policy/core/common/cloud/mock_cloud_policy_client.h
index f297221d4255940f2c91ecf0dca9439a9c557052..4cfc5e9b05e97de705123cf0dd7615fb076ca40f 100644
--- a/components/policy/core/common/cloud/mock_cloud_policy_client.h
+++ b/components/policy/core/common/cloud/mock_cloud_policy_client.h
@@ -6,9 +6,12 @@
#define COMPONENTS_POLICY_CORE_COMMON_CLOUD_MOCK_CLOUD_POLICY_CLIENT_H_
#include <string>
+#include <vector>
#include "base/basictypes.h"
#include "components/policy/core/common/cloud/cloud_policy_client.h"
+#include "components/policy/core/common/remote_commands/remote_command_job.h"
+#include "policy/proto/device_management_backend.pb.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace policy {
@@ -34,6 +37,12 @@ class MockCloudPolicyClient : public CloudPolicyClient {
void(const enterprise_management::DeviceStatusReportRequest*,
const enterprise_management::SessionStatusReportRequest*,
const StatusCallback&));
+ MOCK_METHOD3(
bartfab (slow) 2015/03/12 14:00:54 Why are you no longer mocking this method?
binjin 2015/03/12 14:08:36 It's not used in any other code, and scoped_ptr as
+ FetchRemoteCommands,
+ void(RemoteCommandJob::UniqueIDType last_command_id,
+ const std::vector<enterprise_management::RemoteCommandResult>&
+ command_results,
+ const RemoteCommandCallback& callback));
// Sets the DMToken.
void SetDMToken(const std::string& token);

Powered by Google App Engine
This is Rietveld 408576698