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

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

Issue 508473002: Componentize component_updater: Move URLRequestPrepackagedInterceptor from content/ to net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: run git cl format 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/chrome/browser/component_updater/test/component_patcher_unittest.cc b/components/component_updater/test/component_patcher_unittest.cc
similarity index 95%
rename from chrome/browser/component_updater/test/component_patcher_unittest.cc
rename to components/component_updater/test/component_patcher_unittest.cc
index ba138f3dc19942bd03c0a8cd0d2a29cf2482a292..71572520334d052da31f1a7031cfe6a937986056 100644
--- a/chrome/browser/component_updater/test/component_patcher_unittest.cc
+++ b/components/component_updater/test/component_patcher_unittest.cc
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "base/base_paths.h"
#include "base/bind.h"
#include "base/compiler_specific.h"
#include "base/files/file_path.h"
@@ -11,12 +12,11 @@
#include "base/path_service.h"
#include "base/run_loop.h"
#include "base/values.h"
-#include "chrome/browser/component_updater/test/component_patcher_unittest.h"
-#include "chrome/browser/component_updater/test/test_installer.h"
-#include "chrome/common/chrome_paths.h"
#include "components/component_updater/component_patcher.h"
#include "components/component_updater/component_patcher_operation.h"
#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"
@@ -56,8 +56,12 @@ namespace {
base::FilePath test_file(const char* file) {
base::FilePath path;
- PathService::Get(chrome::DIR_TEST_DATA, &path);
- return path.AppendASCII("components").AppendASCII(file);
+ PathService::Get(base::DIR_SOURCE_ROOT, &path);
+ return path.AppendASCII("components")
+ .AppendASCII("test")
+ .AppendASCII("data")
+ .AppendASCII("component_updater")
+ .AppendASCII(file);
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698