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

Side by Side Diff: chrome/utility/importer/safari_importer_unittest.mm

Issue 2321573002: //chrome misc: Change ScopedTempDir::path() to GetPath() (Closed)
Patch Set: Fix Win compilation Created 4 years, 3 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/utility/importer/safari_importer.h" 5 #include "chrome/utility/importer/safari_importer.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 GetTestSafariLibraryPath("default"), &items)); 266 GetTestSafariLibraryPath("default"), &items));
267 EXPECT_EQ(items, importer::HISTORY | importer::FAVORITES); 267 EXPECT_EQ(items, importer::HISTORY | importer::FAVORITES);
268 EXPECT_EQ(items & importer::COOKIES, importer::NONE); 268 EXPECT_EQ(items & importer::COOKIES, importer::NONE);
269 EXPECT_EQ(items & importer::PASSWORDS, importer::NONE); 269 EXPECT_EQ(items & importer::PASSWORDS, importer::NONE);
270 EXPECT_EQ(items & importer::SEARCH_ENGINES, importer::NONE); 270 EXPECT_EQ(items & importer::SEARCH_ENGINES, importer::NONE);
271 EXPECT_EQ(items & importer::HOME_PAGE, importer::NONE); 271 EXPECT_EQ(items & importer::HOME_PAGE, importer::NONE);
272 272
273 // Check that we don't import anything from a bogus library directory. 273 // Check that we don't import anything from a bogus library directory.
274 base::ScopedTempDir fake_library_dir; 274 base::ScopedTempDir fake_library_dir;
275 ASSERT_TRUE(fake_library_dir.CreateUniqueTempDir()); 275 ASSERT_TRUE(fake_library_dir.CreateUniqueTempDir());
276 EXPECT_FALSE(SafariImporterCanImport(fake_library_dir.path(), &items)); 276 EXPECT_FALSE(SafariImporterCanImport(fake_library_dir.GetPath(), &items));
277 } 277 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698