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

Unified Diff: chrome/browser/importer/firefox_importer_browsertest.cc

Issue 247223003: Parsed search.json for importing search engine settings from FireFox. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed text alignments Created 6 years, 7 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
« no previous file with comments | « no previous file | chrome/test/data/firefox3_profile/README » ('j') | chrome/test/data/firefox3_profile/README » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/importer/firefox_importer_browsertest.cc
diff --git a/chrome/browser/importer/firefox_importer_browsertest.cc b/chrome/browser/importer/firefox_importer_browsertest.cc
index c56af96e163f76e0da386b18c2b9d88f409deae5..18059820c17cabf00f865b766f10f904cd7cfde7 100644
--- a/chrome/browser/importer/firefox_importer_browsertest.cc
+++ b/chrome/browser/importer/firefox_importer_browsertest.cc
@@ -225,11 +225,10 @@ class FirefoxProfileImporterBrowserTest : public InProcessBrowserTest {
InProcessBrowserTest::SetUp();
}
- void Firefox3xImporterBrowserTest(
- std::string profile_dir,
- importer::ImporterProgressObserver* observer,
- ProfileWriter* writer,
- bool import_search_plugins) {
+ void FirefoxImporterBrowserTest(std::string profile_dir,
+ importer::ImporterProgressObserver* observer,
+ ProfileWriter* writer,
+ bool import_search_plugins) {
base::FilePath data_path;
ASSERT_TRUE(PathService::Get(chrome::DIR_TEST_DATA, &data_path));
data_path = data_path.AppendASCII(profile_dir);
@@ -243,12 +242,6 @@ class FirefoxProfileImporterBrowserTest : public InProcessBrowserTest {
base::CreateDirectory(search_engine_path);
if (import_search_plugins) {
ASSERT_TRUE(PathService::Get(chrome::DIR_TEST_DATA, &data_path));
- data_path = data_path.AppendASCII("firefox3_searchplugins");
- if (!base::PathExists(data_path)) {
- // TODO(maruel): Create search test data that we can open source!
- LOG(ERROR) << "Missing internal test data";
- return;
- }
ASSERT_TRUE(base::CopyDirectory(data_path, search_engine_path, false));
Ilya Sherman 2014/06/06 04:15:42 I'm noticing that this code currently tries to cop
Tapu Ghose 2014/06/15 04:19:49 Updated test code for copying the files properly.
}
@@ -280,8 +273,8 @@ class FirefoxProfileImporterBrowserTest : public InProcessBrowserTest {
IN_PROC_BROWSER_TEST_F(FirefoxProfileImporterBrowserTest,
MAYBE_IMPORTER(Firefox30Importer)) {
scoped_refptr<FirefoxObserver> observer(new FirefoxObserver());
- Firefox3xImporterBrowserTest("firefox3_profile", observer.get(),
- observer.get(), true);
+ FirefoxImporterBrowserTest(
+ "firefox3_profile", observer.get(), observer.get(), true);
}
IN_PROC_BROWSER_TEST_F(FirefoxProfileImporterBrowserTest,
@@ -289,6 +282,14 @@ IN_PROC_BROWSER_TEST_F(FirefoxProfileImporterBrowserTest,
bool import_search_engines = false;
scoped_refptr<FirefoxObserver> observer(
new FirefoxObserver(import_search_engines));
- Firefox3xImporterBrowserTest("firefox35_profile", observer.get(),
- observer.get(), import_search_engines);
+ FirefoxImporterBrowserTest("firefox35_profile",
+ observer.get(),
+ observer.get(),
+ import_search_engines);
+}
+
+IN_PROC_BROWSER_TEST_F(FirefoxProfileImporterBrowserTest, FirefoxImporter) {
+ scoped_refptr<FirefoxObserver> observer(new FirefoxObserver());
+ FirefoxImporterBrowserTest(
+ "firefox_profile", observer.get(), observer.get(), true);
}
« no previous file with comments | « no previous file | chrome/test/data/firefox3_profile/README » ('j') | chrome/test/data/firefox3_profile/README » ('J')

Powered by Google App Engine
This is Rietveld 408576698