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

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

Issue 762863002: Removed policy::PolicyNamespaceKey. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pass values in ctors Created 6 years, 1 month 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 3d4b2bba57b02816484e266e7bb02d1110d10a42..4e6db4bc9253250d81fa5a3551b8452ef714aea0 100644
--- a/components/policy/core/common/cloud/mock_cloud_policy_client.h
+++ b/components/policy/core/common/cloud/mock_cloud_policy_client.h
@@ -9,7 +9,6 @@
#include "base/basictypes.h"
#include "components/policy/core/common/cloud/cloud_policy_client.h"
-#include "components/policy/core/common/cloud/cloud_policy_constants.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace policy {
@@ -33,7 +32,8 @@ class MockCloudPolicyClient : public CloudPolicyClient {
void SetDMToken(const std::string& token);
// Injects policy.
- void SetPolicy(const PolicyNamespaceKey& policy_ns_key,
+ void SetPolicy(const std::string& policy_type,
+ const std::string& settings_entity_id,
const enterprise_management::PolicyFetchResponse& policy);
// Sets the status field.
@@ -50,7 +50,7 @@ class MockCloudPolicyClient : public CloudPolicyClient {
using CloudPolicyClient::last_policy_timestamp_;
using CloudPolicyClient::public_key_version_;
using CloudPolicyClient::public_key_version_valid_;
- using CloudPolicyClient::namespaces_to_fetch_;
+ using CloudPolicyClient::types_to_fetch_;
using CloudPolicyClient::invalidation_version_;
using CloudPolicyClient::invalidation_payload_;
using CloudPolicyClient::fetched_invalidation_version_;

Powered by Google App Engine
This is Rietveld 408576698