| 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 "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
| 8 #include "url/gurl.h" | 8 #include "url/gurl.h" |
| 9 | 9 |
| 10 namespace internal { | 10 namespace internal { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 { "chrome://about", true }, | 29 { "chrome://about", true }, |
| 30 { "about:version", true }, | 30 { "about:version", true }, |
| 31 { "about:blank", true }, | 31 { "about:blank", true }, |
| 32 { "about:credits", true }, | 32 { "about:credits", true }, |
| 33 { "wyciwyg://example.com", false }, | 33 { "wyciwyg://example.com", false }, |
| 34 { "place://google.com", false }, | 34 { "place://google.com", false }, |
| 35 { "about:config", false }, | 35 { "about:config", false }, |
| 36 { "about:moon", false }, | 36 { "about:moon", false }, |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(test_cases); ++i) { | 39 for (size_t i = 0; i < arraysize(test_cases); ++i) { |
| 40 EXPECT_EQ(test_cases[i].can_be_imported, | 40 EXPECT_EQ(test_cases[i].can_be_imported, |
| 41 internal::CanImportURL(GURL(test_cases[i].url))); | 41 internal::CanImportURL(GURL(test_cases[i].url))); |
| 42 } | 42 } |
| 43 } | 43 } |
| OLD | NEW |