| 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> |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 class TestURLRequestContextGetter; | 27 class TestURLRequestContextGetter; |
| 28 class URLRequestContextGetter; | 28 class URLRequestContextGetter; |
| 29 } // namespace net | 29 } // namespace net |
| 30 | 30 |
| 31 namespace update_client { | 31 namespace update_client { |
| 32 | 32 |
| 33 #define POST_INTERCEPT_SCHEME "https" | 33 #define POST_INTERCEPT_SCHEME "https" |
| 34 #define POST_INTERCEPT_HOSTNAME "localhost2" | 34 #define POST_INTERCEPT_HOSTNAME "localhost2" |
| 35 #define POST_INTERCEPT_PATH "/update2" | 35 #define POST_INTERCEPT_PATH "/update2" |
| 36 | 36 |
| 37 struct CrxComponent; | |
| 38 | |
| 39 // component 1 has extension id "jebgalgnebhfojomionfpkfelancnnkf", and | 37 // component 1 has extension id "jebgalgnebhfojomionfpkfelancnnkf", and |
| 40 // the RSA public key the following hash: | 38 // the RSA public key the following hash: |
| 41 const uint8_t jebg_hash[] = {0x94, 0x16, 0x0b, 0x6d, 0x41, 0x75, 0xe9, 0xec, | 39 const uint8_t jebg_hash[] = {0x94, 0x16, 0x0b, 0x6d, 0x41, 0x75, 0xe9, 0xec, |
| 42 0x8e, 0xd5, 0xfa, 0x54, 0xb0, 0xd2, 0xdd, 0xa5, | 40 0x8e, 0xd5, 0xfa, 0x54, 0xb0, 0xd2, 0xdd, 0xa5, |
| 43 0x6e, 0x05, 0x6b, 0xe8, 0x73, 0x47, 0xf6, 0xc4, | 41 0x6e, 0x05, 0x6b, 0xe8, 0x73, 0x47, 0xf6, 0xc4, |
| 44 0x11, 0x9f, 0xbc, 0xb3, 0x09, 0xb3, 0x5b, 0x40}; | 42 0x11, 0x9f, 0xbc, 0xb3, 0x09, 0xb3, 0x5b, 0x40}; |
| 45 // component 2 has extension id "abagagagagagagagagagagagagagagag", and | 43 // component 2 has extension id "abagagagagagagagagagagagagagagag", and |
| 46 // the RSA public key the following hash: | 44 // the RSA public key the following hash: |
| 47 const uint8_t abag_hash[] = {0x01, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, | 45 const uint8_t abag_hash[] = {0x01, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, |
| 48 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, | 46 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 GURL ping_url_; | 112 GURL ping_url_; |
| 115 | 113 |
| 116 scoped_refptr<net::TestURLRequestContextGetter> context_; | 114 scoped_refptr<net::TestURLRequestContextGetter> context_; |
| 117 | 115 |
| 118 DISALLOW_COPY_AND_ASSIGN(TestConfigurator); | 116 DISALLOW_COPY_AND_ASSIGN(TestConfigurator); |
| 119 }; | 117 }; |
| 120 | 118 |
| 121 } // namespace update_client | 119 } // namespace update_client |
| 122 | 120 |
| 123 #endif // COMPONENTS_UPDATE_CLIENT_TEST_CONFIGURATOR_H_ | 121 #endif // COMPONENTS_UPDATE_CLIENT_TEST_CONFIGURATOR_H_ |
| OLD | NEW |