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

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

Issue 2530023002: Fix policy test server key rotation feature (Closed)
Patch Set: 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
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..9ab03cddecf2bb5c6831e16543666a13e27b593f 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. This must be
+ // called before starting the server, and only works when the server serves
+ // from a temporary directory.
+ void SetSigningKeysAutomaticRotation();
Andrew T Wilson (Slow) 2016/11/25 14:50:09 I think "EnableAutomaticRotationOfSigningKeys()" i
emaxx 2016/11/25 16:17:38 Done.
+
// 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 signing_keys_automatic_rotation_ = false;
DISALLOW_COPY_AND_ASSIGN(LocalPolicyTestServer);
};
« no previous file with comments | « no previous file | chrome/browser/policy/test/local_policy_test_server.cc » ('j') | chrome/browser/policy/test/policy_testserver.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698