| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_POLICY_TEST_LOCAL_POLICY_TEST_SERVER_H_ | 5 #ifndef CHROME_BROWSER_POLICY_TEST_LOCAL_POLICY_TEST_SERVER_H_ |
| 6 #define CHROME_BROWSER_POLICY_TEST_LOCAL_POLICY_TEST_SERVER_H_ | 6 #define CHROME_BROWSER_POLICY_TEST_LOCAL_POLICY_TEST_SERVER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 // | 73 // |
| 74 // This only works when the server serves from a temporary directory. | 74 // This only works when the server serves from a temporary directory. |
| 75 bool UpdatePolicyData(const std::string& type, | 75 bool UpdatePolicyData(const std::string& type, |
| 76 const std::string& entity_id, | 76 const std::string& entity_id, |
| 77 const std::string& data); | 77 const std::string& data); |
| 78 | 78 |
| 79 // Gets the service URL. | 79 // Gets the service URL. |
| 80 GURL GetServiceURL() const; | 80 GURL GetServiceURL() const; |
| 81 | 81 |
| 82 // net::LocalTestServer: | 82 // net::LocalTestServer: |
| 83 virtual bool SetPythonPath() const OVERRIDE; | 83 virtual bool SetPythonPath() const override; |
| 84 virtual bool GetTestServerPath( | 84 virtual bool GetTestServerPath( |
| 85 base::FilePath* testserver_path) const OVERRIDE; | 85 base::FilePath* testserver_path) const override; |
| 86 virtual bool GenerateAdditionalArguments( | 86 virtual bool GenerateAdditionalArguments( |
| 87 base::DictionaryValue* arguments) const OVERRIDE; | 87 base::DictionaryValue* arguments) const override; |
| 88 | 88 |
| 89 private: | 89 private: |
| 90 std::string GetSelector(const std::string& type, | 90 std::string GetSelector(const std::string& type, |
| 91 const std::string& entity_id); | 91 const std::string& entity_id); |
| 92 | 92 |
| 93 base::FilePath config_file_; | 93 base::FilePath config_file_; |
| 94 base::FilePath policy_key_; | 94 base::FilePath policy_key_; |
| 95 base::DictionaryValue clients_; | 95 base::DictionaryValue clients_; |
| 96 base::ScopedTempDir server_data_dir_; | 96 base::ScopedTempDir server_data_dir_; |
| 97 | 97 |
| 98 DISALLOW_COPY_AND_ASSIGN(LocalPolicyTestServer); | 98 DISALLOW_COPY_AND_ASSIGN(LocalPolicyTestServer); |
| 99 }; | 99 }; |
| 100 | 100 |
| 101 } // namespace policy | 101 } // namespace policy |
| 102 | 102 |
| 103 #endif // CHROME_BROWSER_POLICY_TEST_LOCAL_POLICY_TEST_SERVER_H_ | 103 #endif // CHROME_BROWSER_POLICY_TEST_LOCAL_POLICY_TEST_SERVER_H_ |
| OLD | NEW |