Chromium Code Reviews| 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); |
| }; |