| Index: components/component_updater/test/url_request_post_interceptor.h
|
| diff --git a/components/component_updater/test/url_request_post_interceptor.h b/components/component_updater/test/url_request_post_interceptor.h
|
| index 9c60c610445cae81965484c78507ddc46ddf60c6..ea490bf4e0e579c2b23c6896df13541b8049c019 100644
|
| --- a/components/component_updater/test/url_request_post_interceptor.h
|
| +++ b/components/component_updater/test/url_request_post_interceptor.h
|
| @@ -5,13 +5,14 @@
|
| #ifndef COMPONENTS_COMPONENT_UPDATER_TEST_URL_REQUEST_POST_INTERCEPTOR_H_
|
| #define COMPONENTS_COMPONENT_UPDATER_TEST_URL_REQUEST_POST_INTERCEPTOR_H_
|
|
|
| +#include <stdint.h>
|
| #include <map>
|
| #include <queue>
|
| #include <string>
|
| #include <utility>
|
| #include <vector>
|
|
|
| -#include "base/basictypes.h"
|
| +#include "base/macros.h"
|
| #include "base/memory/ref_counted.h"
|
| #include "base/synchronization/lock.h"
|
| #include "url/gurl.h"
|
| @@ -29,22 +30,22 @@ namespace component_updater {
|
|
|
| // component 1 has extension id "jebgalgnebhfojomionfpkfelancnnkf", and
|
| // the RSA public key the following hash:
|
| -const uint8 jebg_hash[] = {0x94, 0x16, 0x0b, 0x6d, 0x41, 0x75, 0xe9, 0xec,
|
| - 0x8e, 0xd5, 0xfa, 0x54, 0xb0, 0xd2, 0xdd, 0xa5,
|
| - 0x6e, 0x05, 0x6b, 0xe8, 0x73, 0x47, 0xf6, 0xc4,
|
| - 0x11, 0x9f, 0xbc, 0xb3, 0x09, 0xb3, 0x5b, 0x40};
|
| +const uint8_t jebg_hash[] = {0x94, 0x16, 0x0b, 0x6d, 0x41, 0x75, 0xe9, 0xec,
|
| + 0x8e, 0xd5, 0xfa, 0x54, 0xb0, 0xd2, 0xdd, 0xa5,
|
| + 0x6e, 0x05, 0x6b, 0xe8, 0x73, 0x47, 0xf6, 0xc4,
|
| + 0x11, 0x9f, 0xbc, 0xb3, 0x09, 0xb3, 0x5b, 0x40};
|
| // component 2 has extension id "abagagagagagagagagagagagagagagag", and
|
| // the RSA public key the following hash:
|
| -const uint8 abag_hash[] = {0x01, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06,
|
| - 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06,
|
| - 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06,
|
| - 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x01};
|
| +const uint8_t abag_hash[] = {0x01, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06,
|
| + 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06,
|
| + 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06,
|
| + 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x01};
|
| // component 3 has extension id "ihfokbkgjpifnbbojhneepfflplebdkc", and
|
| // the RSA public key the following hash:
|
| -const uint8 ihfo_hash[] = {0x87, 0x5e, 0xa1, 0xa6, 0x9f, 0x85, 0xd1, 0x1e,
|
| - 0x97, 0xd4, 0x4f, 0x55, 0xbf, 0xb4, 0x13, 0xa2,
|
| - 0xe7, 0xc5, 0xc8, 0xf5, 0x60, 0x19, 0x78, 0x1b,
|
| - 0x6d, 0xe9, 0x4c, 0xeb, 0x96, 0x05, 0x42, 0x17};
|
| +const uint8_t ihfo_hash[] = {0x87, 0x5e, 0xa1, 0xa6, 0x9f, 0x85, 0xd1, 0x1e,
|
| + 0x97, 0xd4, 0x4f, 0x55, 0xbf, 0xb4, 0x13, 0xa2,
|
| + 0xe7, 0xc5, 0xc8, 0xf5, 0x60, 0x19, 0x78, 0x1b,
|
| + 0x6d, 0xe9, 0x4c, 0xeb, 0x96, 0x05, 0x42, 0x17};
|
|
|
| // Intercepts requests to a file path, counts them, and captures the body of
|
| // the requests. Optionally, for each request, it can return a canned response
|
|
|