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

Unified Diff: chrome/browser/policy/test/local_policy_test_server.h

Issue 2530023002: Fix policy test server key rotation feature (Closed)
Patch Set: Rename, add comments Created 4 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
« no previous file with comments | « no previous file | chrome/browser/policy/test/local_policy_test_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/test/local_policy_test_server.h
diff --git a/chrome/browser/policy/test/local_policy_test_server.h b/chrome/browser/policy/test/local_policy_test_server.h
index de7956f47a9a10b31835f3ad73f9faddef8d9e3a..9abb4b46c9b792e5646b8bc44e89a03e2cd43ce7 100644
--- a/chrome/browser/policy/test/local_policy_test_server.h
+++ b/chrome/browser/policy/test/local_policy_test_server.h
@@ -44,6 +44,11 @@ class LocalPolicyTestServer : public net::LocalTestServer {
bool SetSigningKeyAndSignature(const crypto::RSAPrivateKey* key,
const std::string& signature);
+ // Enables the automatic rotation of the policy signing keys with each policy
+ // fetch request. This must be called before starting the server, and only
+ // works when the server serves from a temporary directory.
+ void EnableAutomaticRotationOfSigningKeys();
+
// Pre-configures a registered client so the server returns policy without the
// client having to make a registration call. This must be called before
// starting the server, and only works when the server serves from a temporary
@@ -93,6 +98,7 @@ class LocalPolicyTestServer : public net::LocalTestServer {
base::FilePath policy_key_;
base::DictionaryValue clients_;
base::ScopedTempDir server_data_dir_;
+ bool automatic_rotation_of_signing_keys_enabled_ = false;
DISALLOW_COPY_AND_ASSIGN(LocalPolicyTestServer);
};
« no previous file with comments | « no previous file | chrome/browser/policy/test/local_policy_test_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698