| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "chrome/utility/importer/bookmarks_file_importer.h" | 5 #include "chrome/utility/importer/bookmarks_file_importer.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 9 #include "base/macros.h" |
| 7 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 8 #include "url/gurl.h" | 11 #include "url/gurl.h" |
| 9 | 12 |
| 10 namespace internal { | 13 namespace internal { |
| 11 | 14 |
| 12 bool CanImportURL(const GURL& url); | 15 bool CanImportURL(const GURL& url); |
| 13 | 16 |
| 14 } // namespace internal | 17 } // namespace internal |
| 15 | 18 |
| 16 TEST(BookmarksFileImporterTest, CanImportURL) { | 19 TEST(BookmarksFileImporterTest, CanImportURL) { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 34 { "place://google.com", false }, | 37 { "place://google.com", false }, |
| 35 { "about:config", false }, | 38 { "about:config", false }, |
| 36 { "about:moon", false }, | 39 { "about:moon", false }, |
| 37 }; | 40 }; |
| 38 | 41 |
| 39 for (size_t i = 0; i < arraysize(test_cases); ++i) { | 42 for (size_t i = 0; i < arraysize(test_cases); ++i) { |
| 40 EXPECT_EQ(test_cases[i].can_be_imported, | 43 EXPECT_EQ(test_cases[i].can_be_imported, |
| 41 internal::CanImportURL(GURL(test_cases[i].url))); | 44 internal::CanImportURL(GURL(test_cases[i].url))); |
| 42 } | 45 } |
| 43 } | 46 } |
| OLD | NEW |