Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Unified Diff: components/update_client/test/test_configurator.h

Issue 808773005: Move most of the component updater artifacts to update_client. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/update_client/test/test_configurator.h
diff --git a/components/component_updater/test/test_configurator.h b/components/update_client/test/test_configurator.h
similarity index 61%
rename from components/component_updater/test/test_configurator.h
rename to components/update_client/test/test_configurator.h
index 264b7c9ce8a378ff171cd665842cf880f2fc88d1..4943cca6685b255d967026d3881bf4851a4e7498 100644
--- a/components/component_updater/test/test_configurator.h
+++ b/components/update_client/test/test_configurator.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_COMPONENT_UPDATER_TEST_TEST_CONFIGURATOR_H_
-#define COMPONENTS_COMPONENT_UPDATER_TEST_TEST_CONFIGURATOR_H_
+#ifndef COMPONENTS_UPDATE_CLIENT_TEST_TEST_CONFIGURATOR_H_
+#define COMPONENTS_UPDATE_CLIENT_TEST_TEST_CONFIGURATOR_H_
#include <string>
#include <utility>
@@ -13,7 +13,7 @@
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "components/component_updater/component_updater_configurator.h"
+#include "components/update_client/configurator.h"
#include "net/url_request/url_request_test_util.h"
class GURL;
@@ -23,7 +23,7 @@ class SequencedTaskRunner;
class SingleThreadTaskRunner;
} // namespace base
-namespace component_updater {
+namespace update_client {
#define POST_INTERCEPT_SCHEME "https"
#define POST_INTERCEPT_HOSTNAME "localhost2"
@@ -31,6 +31,25 @@ namespace component_updater {
struct CrxComponent;
+// component 1 has extension id "jebgalgnebhfojomionfpkfelancnnkf", and
+// the RSA public key the following hash:
+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_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_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};
+
class TestConfigurator : public Configurator {
public:
TestConfigurator(
@@ -83,6 +102,6 @@ class TestConfigurator : public Configurator {
DISALLOW_COPY_AND_ASSIGN(TestConfigurator);
};
-} // namespace component_updater
+} // namespace update_client
-#endif // COMPONENTS_COMPONENT_UPDATER_TEST_TEST_CONFIGURATOR_H_
+#endif // COMPONENTS_UPDATE_CLIENT_TEST_TEST_CONFIGURATOR_H_

Powered by Google App Engine
This is Rietveld 408576698