| 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);
|
| };
|
|
|