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

Unified Diff: chrome/browser/component_updater/test/component_updater_service_unittest.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: chrome/browser/component_updater/test/component_updater_service_unittest.h
diff --git a/chrome/browser/component_updater/test/component_updater_service_unittest.h b/chrome/browser/component_updater/test/component_updater_service_unittest.h
index 23b571ad97f6baef468f1b839b3268ee3894db15..49550414e13e13eaddd3317b9b1d89366bc08b83 100644
--- a/chrome/browser/component_updater/test/component_updater_service_unittest.h
+++ b/chrome/browser/component_updater/test/component_updater_service_unittest.h
@@ -20,12 +20,15 @@ namespace net {
class LocalHostTestURLRequestInterceptor;
}
-namespace component_updater {
-
+namespace update_client {
+struct CrxComponent;
class InterceptorFactory;
class TestConfigurator;
class TestInstaller;
class URLRequestPostInterceptor;
+}
+
+namespace component_updater {
// Intercepts HTTP GET requests sent to "localhost".
typedef net::LocalHostTestURLRequestInterceptor GetInterceptor;
@@ -51,24 +54,27 @@ class ComponentUpdaterTest : public testing::Test {
// Makes the full path to a component updater test file.
const base::FilePath test_file(const char* file);
- TestConfigurator* test_configurator();
+ update_client::TestConfigurator* test_configurator();
- ComponentUpdateService::Status RegisterComponent(CrxComponent* com,
- TestComponents component,
- const Version& version,
- TestInstaller* installer);
+ ComponentUpdateService::Status RegisterComponent(
+ update_client::CrxComponent* com,
+ TestComponents component,
+ const Version& version,
+ update_client::TestInstaller* installer);
protected:
void RunThreads();
void RunThreadsUntilIdle();
- scoped_ptr<InterceptorFactory> interceptor_factory_;
- URLRequestPostInterceptor* post_interceptor_; // Owned by the factory.
+ scoped_ptr<update_client::InterceptorFactory> interceptor_factory_;
+
+ // Owned by the factory.
+ update_client::URLRequestPostInterceptor* post_interceptor_;
scoped_ptr<GetInterceptor> get_interceptor_;
private:
- TestConfigurator* test_config_;
+ update_client::TestConfigurator* test_config_;
content::TestBrowserThreadBundle thread_bundle_;
scoped_ptr<ComponentUpdateService> component_updater_;
};

Powered by Google App Engine
This is Rietveld 408576698