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

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

Issue 18286004: Move PathExists to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
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/file_util.h" 5 #include "base/file_util.h"
6 #include "base/files/file_path.h" 6 #include "base/files/file_path.h"
7 #include "base/files/scoped_temp_dir.h" 7 #include "base/files/scoped_temp_dir.h"
8 #include "base/message_loop.h" 8 #include "base/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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 ASSERT_TRUE(PathService::Get(chrome::DIR_TEST_DATA, &data_path)); 241 ASSERT_TRUE(PathService::Get(chrome::DIR_TEST_DATA, &data_path));
242 data_path = data_path.AppendASCII("firefox3_nss"); 242 data_path = data_path.AppendASCII("firefox3_nss");
243 ASSERT_TRUE(base::CopyDirectory(data_path, profile_path_, false)); 243 ASSERT_TRUE(base::CopyDirectory(data_path, profile_path_, false));
244 244
245 base::FilePath search_engine_path = app_path_; 245 base::FilePath search_engine_path = app_path_;
246 search_engine_path = search_engine_path.AppendASCII("searchplugins"); 246 search_engine_path = search_engine_path.AppendASCII("searchplugins");
247 file_util::CreateDirectory(search_engine_path); 247 file_util::CreateDirectory(search_engine_path);
248 if (import_search_plugins) { 248 if (import_search_plugins) {
249 ASSERT_TRUE(PathService::Get(chrome::DIR_TEST_DATA, &data_path)); 249 ASSERT_TRUE(PathService::Get(chrome::DIR_TEST_DATA, &data_path));
250 data_path = data_path.AppendASCII("firefox3_searchplugins"); 250 data_path = data_path.AppendASCII("firefox3_searchplugins");
251 if (!file_util::PathExists(data_path)) { 251 if (!base::PathExists(data_path)) {
252 // TODO(maruel): Create search test data that we can open source! 252 // TODO(maruel): Create search test data that we can open source!
253 LOG(ERROR) << L"Missing internal test data"; 253 LOG(ERROR) << L"Missing internal test data";
254 return; 254 return;
255 } 255 }
256 ASSERT_TRUE(base::CopyDirectory(data_path, search_engine_path, false)); 256 ASSERT_TRUE(base::CopyDirectory(data_path, search_engine_path, false));
257 } 257 }
258 258
259 importer::SourceProfile source_profile; 259 importer::SourceProfile source_profile;
260 source_profile.importer_type = importer::TYPE_FIREFOX3; 260 source_profile.importer_type = importer::TYPE_FIREFOX3;
261 source_profile.app_path = app_path_; 261 source_profile.app_path = app_path_;
(...skipping 27 matching lines...) Expand all
289 } 289 }
290 290
291 IN_PROC_BROWSER_TEST_F(FirefoxProfileImporterBrowserTest, 291 IN_PROC_BROWSER_TEST_F(FirefoxProfileImporterBrowserTest,
292 MAYBE_IMPORTER(Firefox35Importer)) { 292 MAYBE_IMPORTER(Firefox35Importer)) {
293 bool import_search_engines = false; 293 bool import_search_engines = false;
294 scoped_refptr<Firefox3Observer> observer( 294 scoped_refptr<Firefox3Observer> observer(
295 new Firefox3Observer(import_search_engines)); 295 new Firefox3Observer(import_search_engines));
296 Firefox3xImporterBrowserTest("firefox35_profile", observer.get(), 296 Firefox3xImporterBrowserTest("firefox35_profile", observer.get(),
297 observer.get(), import_search_engines); 297 observer.get(), import_search_engines);
298 } 298 }
OLDNEW
« no previous file with comments | « chrome/browser/importer/firefox3_importer.cc ('k') | chrome/browser/importer/firefox_importer_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698