OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |