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

Side by Side Diff: chrome/browser/importer/firefox_importer_browsertest.cc

Issue 616763002: Importing certain bookmarks from firefox and HTML file as search engines. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/files/file_path.h" 5 #include "base/files/file_path.h"
6 #include "base/files/file_util.h" 6 #include "base/files/file_util.h"
7 #include "base/files/scoped_temp_dir.h" 7 #include "base/files/scoped_temp_dir.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 "http://en.wikipedia.org/wiki/Special:Search?search={searchTerms}"}, 91 "http://en.wikipedia.org/wiki/Special:Search?search={searchTerms}"},
92 {L"search.yahoo.com", L"search.yahoo.com", 92 {L"search.yahoo.com", L"search.yahoo.com",
93 "http://search.yahoo.com/search?p={searchTerms}&ei=UTF-8"}, 93 "http://search.yahoo.com/search?p={searchTerms}&ei=UTF-8"},
94 {L"flickr.com", L"flickr.com", 94 {L"flickr.com", L"flickr.com",
95 "http://www.flickr.com/photos/tags/?q={searchTerms}"}, 95 "http://www.flickr.com/photos/tags/?q={searchTerms}"},
96 {L"imdb.com", L"imdb.com", "http://www.imdb.com/find?q={searchTerms}"}, 96 {L"imdb.com", L"imdb.com", "http://www.imdb.com/find?q={searchTerms}"},
97 {L"webster.com", L"webster.com", 97 {L"webster.com", L"webster.com",
98 "http://www.webster.com/cgi-bin/dictionary?va={searchTerms}"}, 98 "http://www.webster.com/cgi-bin/dictionary?va={searchTerms}"},
99 // Search keywords. 99 // Search keywords.
100 {L"\x4E2D\x6587", L"\x4E2D\x6587", "http://www.google.com/"}, 100 {L"\x4E2D\x6587", L"\x4E2D\x6587", "http://www.google.com/"},
101 {L"keyword", L"keyword", "http://example.{searchTerms}.com/"},
101 }; 102 };
102 103
103 const AutofillFormDataInfo kFirefoxAutofillEntries[] = { 104 const AutofillFormDataInfo kFirefoxAutofillEntries[] = {
104 {"name", "John"}, 105 {"name", "John"},
105 {"address", "#123 Cherry Ave"}, 106 {"address", "#123 Cherry Ave"},
106 {"city", "Mountain View"}, 107 {"city", "Mountain View"},
107 {"zip", "94043"}, 108 {"zip", "94043"},
108 {"n300", "+1 (408) 871-4567"}, 109 {"n300", "+1 (408) 871-4567"},
109 {"name", "john"}, 110 {"name", "john"},
110 {"name", "aguantó"}, 111 {"name", "aguantó"},
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 scoped_refptr<FirefoxObserver> observer(new FirefoxObserver(false)); 331 scoped_refptr<FirefoxObserver> observer(new FirefoxObserver(false));
331 FirefoxImporterBrowserTest( 332 FirefoxImporterBrowserTest(
332 "firefox35_profile", observer.get(), observer.get()); 333 "firefox35_profile", observer.get(), observer.get());
333 } 334 }
334 335
335 IN_PROC_BROWSER_TEST_F(FirefoxProfileImporterBrowserTest, 336 IN_PROC_BROWSER_TEST_F(FirefoxProfileImporterBrowserTest,
336 MAYBE_IMPORTER(FirefoxImporter)) { 337 MAYBE_IMPORTER(FirefoxImporter)) {
337 scoped_refptr<FirefoxObserver> observer(new FirefoxObserver(true)); 338 scoped_refptr<FirefoxObserver> observer(new FirefoxObserver(true));
338 FirefoxImporterBrowserTest("firefox_profile", observer.get(), observer.get()); 339 FirefoxImporterBrowserTest("firefox_profile", observer.get(), observer.get());
339 } 340 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698