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_COMPONENT_UPDATER_TEST_TEST_CONFIGURATOR_H_ | 5 #ifndef COMPONENTS_COMPONENT_UPDATER_TEST_TEST_CONFIGURATOR_H_ |
6 #define COMPONENTS_COMPONENT_UPDATER_TEST_TEST_CONFIGURATOR_H_ | 6 #define COMPONENTS_COMPONENT_UPDATER_TEST_TEST_CONFIGURATOR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/basictypes.h" | |
13 #include "base/callback.h" | 12 #include "base/callback.h" |
14 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/macros.h" |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "components/component_updater/component_updater_configurator.h" | 16 #include "components/component_updater/component_updater_configurator.h" |
17 #include "net/url_request/url_request_test_util.h" | 17 #include "net/url_request/url_request_test_util.h" |
18 | 18 |
19 class GURL; | 19 class GURL; |
20 | 20 |
| 21 namespace base { |
| 22 class SequencedTaskRunner; |
| 23 class SingleThreadTaskRunner; |
| 24 } // namespace base |
| 25 |
21 namespace component_updater { | 26 namespace component_updater { |
22 | 27 |
23 #define POST_INTERCEPT_SCHEME "https" | 28 #define POST_INTERCEPT_SCHEME "https" |
24 #define POST_INTERCEPT_HOSTNAME "localhost2" | 29 #define POST_INTERCEPT_HOSTNAME "localhost2" |
25 #define POST_INTERCEPT_PATH "/update2" | 30 #define POST_INTERCEPT_PATH "/update2" |
26 | 31 |
27 struct CrxComponent; | 32 struct CrxComponent; |
28 | 33 |
29 class TestConfigurator : public Configurator { | 34 class TestConfigurator : public Configurator { |
30 public: | 35 public: |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 80 |
76 scoped_refptr<net::TestURLRequestContextGetter> context_; | 81 scoped_refptr<net::TestURLRequestContextGetter> context_; |
77 base::Closure quit_closure_; | 82 base::Closure quit_closure_; |
78 | 83 |
79 DISALLOW_COPY_AND_ASSIGN(TestConfigurator); | 84 DISALLOW_COPY_AND_ASSIGN(TestConfigurator); |
80 }; | 85 }; |
81 | 86 |
82 } // namespace component_updater | 87 } // namespace component_updater |
83 | 88 |
84 #endif // COMPONENTS_COMPONENT_UPDATER_TEST_TEST_CONFIGURATOR_H_ | 89 #endif // COMPONENTS_COMPONENT_UPDATER_TEST_TEST_CONFIGURATOR_H_ |
OLD | NEW |