OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_UPDATE_CLIENT_TEST_CONFIGURATOR_H_ | 5 #ifndef COMPONENTS_UPDATE_CLIENT_TEST_CONFIGURATOR_H_ |
6 #define COMPONENTS_UPDATE_CLIENT_TEST_CONFIGURATOR_H_ | 6 #define COMPONENTS_UPDATE_CLIENT_TEST_CONFIGURATOR_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 #include <utility> | 11 #include <utility> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "components/update_client/configurator.h" | 16 #include "components/update_client/configurator.h" |
17 #include "net/url_request/url_request_test_util.h" | 17 #include "url/gurl.h" |
18 | 18 |
19 class GURL; | |
20 class PrefService; | 19 class PrefService; |
21 | 20 |
22 namespace base { | 21 namespace base { |
23 class SequencedTaskRunner; | 22 class SequencedTaskRunner; |
| 23 class SingleThreadTaskRunner; |
24 } // namespace base | 24 } // namespace base |
25 | 25 |
| 26 namespace net { |
| 27 class TestURLRequestContextGetter; |
| 28 class URLRequestContextGetter; |
| 29 } // namespace net |
| 30 |
26 namespace update_client { | 31 namespace update_client { |
27 | 32 |
28 #define POST_INTERCEPT_SCHEME "https" | 33 #define POST_INTERCEPT_SCHEME "https" |
29 #define POST_INTERCEPT_HOSTNAME "localhost2" | 34 #define POST_INTERCEPT_HOSTNAME "localhost2" |
30 #define POST_INTERCEPT_PATH "/update2" | 35 #define POST_INTERCEPT_PATH "/update2" |
31 | 36 |
32 struct CrxComponent; | 37 struct CrxComponent; |
33 | 38 |
34 // component 1 has extension id "jebgalgnebhfojomionfpkfelancnnkf", and | 39 // component 1 has extension id "jebgalgnebhfojomionfpkfelancnnkf", and |
35 // the RSA public key the following hash: | 40 // the RSA public key the following hash: |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 GURL ping_url_; | 113 GURL ping_url_; |
109 | 114 |
110 scoped_refptr<net::TestURLRequestContextGetter> context_; | 115 scoped_refptr<net::TestURLRequestContextGetter> context_; |
111 | 116 |
112 DISALLOW_COPY_AND_ASSIGN(TestConfigurator); | 117 DISALLOW_COPY_AND_ASSIGN(TestConfigurator); |
113 }; | 118 }; |
114 | 119 |
115 } // namespace update_client | 120 } // namespace update_client |
116 | 121 |
117 #endif // COMPONENTS_UPDATE_CLIENT_TEST_CONFIGURATOR_H_ | 122 #endif // COMPONENTS_UPDATE_CLIENT_TEST_CONFIGURATOR_H_ |
OLD | NEW |