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

Unified Diff: components/component_updater/test/component_patcher_unittest.cc

Issue 514473002: Componentize component_updater: Break content/ dependency for rest of component_updater tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix lint issues. fix explicits. Created 6 years, 4 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/component_updater/test/component_patcher_unittest.cc
diff --git a/components/component_updater/test/component_patcher_unittest.cc b/components/component_updater/test/component_patcher_unittest.cc
index 8ed7284adafad5620dfce08cbae678bd4018ee7a..3d4e131e051e4718adca5e87adb572124b81dfbb 100644
--- a/components/component_updater/test/component_patcher_unittest.cc
+++ b/components/component_updater/test/component_patcher_unittest.cc
@@ -8,7 +8,6 @@
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
-#include "base/message_loop/message_loop.h"
#include "base/path_service.h"
#include "base/run_loop.h"
#include "base/values.h"
@@ -17,7 +16,6 @@
#include "components/component_updater/component_updater_service.h"
#include "components/component_updater/test/component_patcher_unittest.h"
#include "components/component_updater/test/test_installer.h"
-#include "content/public/browser/browser_thread.h"
#include "courgette/courgette.h"
#include "courgette/third_party/bsdiff.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -68,8 +66,7 @@ ComponentPatcherOperationTest::ComponentPatcherOperationTest() {
EXPECT_TRUE(input_dir_.CreateUniqueTempDir());
EXPECT_TRUE(installed_dir_.CreateUniqueTempDir());
installer_.reset(new ReadOnlyTestInstaller(installed_dir_.path()));
- task_runner_ = content::BrowserThread::GetMessageLoopProxyForThread(
- content::BrowserThread::FILE);
+ task_runner_ = base::MessageLoop::current()->task_runner();
}
ComponentPatcherOperationTest::~ComponentPatcherOperationTest() {

Powered by Google App Engine
This is Rietveld 408576698