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

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

Issue 16950028: Move file_util::Delete to the 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 213
214 // These tests need to be browser tests in order to be able to run the OOP 214 // These tests need to be browser tests in order to be able to run the OOP
215 // import (via ExternalProcessImporterHost) which launches a utility process on 215 // import (via ExternalProcessImporterHost) which launches a utility process on
216 // supported platforms. 216 // supported platforms.
217 class FirefoxProfileImporterBrowserTest : public InProcessBrowserTest { 217 class FirefoxProfileImporterBrowserTest : public InProcessBrowserTest {
218 protected: 218 protected:
219 virtual void SetUp() OVERRIDE { 219 virtual void SetUp() OVERRIDE {
220 // Creates a new profile in a new subdirectory in the temp directory. 220 // Creates a new profile in a new subdirectory in the temp directory.
221 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); 221 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
222 base::FilePath test_path = temp_dir_.path().AppendASCII("ImporterTest"); 222 base::FilePath test_path = temp_dir_.path().AppendASCII("ImporterTest");
223 file_util::Delete(test_path, true); 223 base::Delete(test_path, true);
224 file_util::CreateDirectory(test_path); 224 file_util::CreateDirectory(test_path);
225 profile_path_ = test_path.AppendASCII("profile"); 225 profile_path_ = test_path.AppendASCII("profile");
226 app_path_ = test_path.AppendASCII("app"); 226 app_path_ = test_path.AppendASCII("app");
227 file_util::CreateDirectory(app_path_); 227 file_util::CreateDirectory(app_path_);
228 228
229 // This will launch the browser test and thus needs to happen last. 229 // This will launch the browser test and thus needs to happen last.
230 InProcessBrowserTest::SetUp(); 230 InProcessBrowserTest::SetUp();
231 } 231 }
232 232
233 void Firefox3xImporterBrowserTest( 233 void Firefox3xImporterBrowserTest(
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 } 291 }
292 292
293 IN_PROC_BROWSER_TEST_F(FirefoxProfileImporterBrowserTest, 293 IN_PROC_BROWSER_TEST_F(FirefoxProfileImporterBrowserTest,
294 MAYBE_IMPORTER(Firefox35Importer)) { 294 MAYBE_IMPORTER(Firefox35Importer)) {
295 bool import_search_engines = false; 295 bool import_search_engines = false;
296 scoped_refptr<Firefox3Observer> observer( 296 scoped_refptr<Firefox3Observer> observer(
297 new Firefox3Observer(import_search_engines)); 297 new Firefox3Observer(import_search_engines));
298 Firefox3xImporterBrowserTest("firefox35_profile", observer.get(), 298 Firefox3xImporterBrowserTest("firefox35_profile", observer.get(),
299 observer.get(), import_search_engines); 299 observer.get(), import_search_engines);
300 } 300 }
OLDNEW
« no previous file with comments | « chrome/browser/history/text_database_manager_unittest.cc ('k') | chrome/browser/importer/firefox_profile_lock_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698