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

Unified Diff: chrome/browser/component_updater/test/component_updater_service_unittest.cc

Issue 334783002: Componentize component_updater: Move some paths/constants to component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge origin/master Created 6 years, 6 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.cc
diff --git a/chrome/browser/component_updater/test/component_updater_service_unittest.cc b/chrome/browser/component_updater/test/component_updater_service_unittest.cc
index 5fd11592c4b3fdff18b00726747b974f8f5c7d7a..6929a31519cbf382a9d4ef87be1be3338917af1a 100644
--- a/chrome/browser/component_updater/test/component_updater_service_unittest.cc
+++ b/chrome/browser/component_updater/test/component_updater_service_unittest.cc
@@ -13,6 +13,7 @@
#include "chrome/browser/component_updater/component_updater_utils.h"
#include "chrome/browser/component_updater/test/test_installer.h"
#include "chrome/common/chrome_paths.h"
+#include "chrome/common/chrome_version_info.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/resource_controller.h"
#include "content/public/browser/resource_request_info.h"
@@ -164,11 +165,15 @@ URLRequestPostInterceptor* InterceptorFactory::CreateInterceptor() {
}
ComponentUpdaterTest::ComponentUpdaterTest()
- : test_config_(NULL),
+ : post_interceptor_(NULL),
+ test_config_(NULL),
thread_bundle_(content::TestBrowserThreadBundle::IO_MAINLOOP) {
// The component updater instance under test.
test_config_ = new TestConfigurator;
- component_updater_.reset(ComponentUpdateServiceFactory(test_config_));
+ component_updater_.reset(
+ ComponentUpdateServiceFactory(test_config_,
+ chrome::VersionInfo().Version(),
+ chrome::VersionInfo().OSType()));
test_config_->SetComponentUpdateService(component_updater_.get());
// The test directory is chrome/test/data/components.

Powered by Google App Engine
This is Rietveld 408576698