| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "testing/gtest/include/gtest/gtest.h" | 5 #include "testing/gtest/include/gtest/gtest.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "chrome/browser/importer/importer.h" | 10 #include "chrome/browser/importer/importer.h" |
| 11 #include "chrome/browser/importer/toolbar_importer.h" | 11 #include "chrome/browser/importer/toolbar_importer.h" |
| 12 #include "chrome/common/libxml_utils.h" | 12 #include "chrome/common/libxml_utils.h" |
| 13 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
| 14 | 14 |
| 15 // See http://crbug.com/11838 |
| 15 TEST(Toolbar5ImporterTest, DISABLED_BookmarkParse) { | 16 TEST(Toolbar5ImporterTest, DISABLED_BookmarkParse) { |
| 16 #if 0 // Compile breaks if you remove this and leave the test disabled | 17 #if 0 // Compile breaks if you remove this and leave the test disabled |
| 17 static const wchar_t* kTitle = L"MyTitle"; | 18 static const wchar_t* kTitle = L"MyTitle"; |
| 18 static const char* kUrl = "http://www.google.com/"; | 19 static const char* kUrl = "http://www.google.com/"; |
| 19 static const wchar_t* kFolder = L"Google"; | 20 static const wchar_t* kFolder = L"Google"; |
| 20 static const wchar_t* kFolder2 = L"Homepage"; | 21 static const wchar_t* kFolder2 = L"Homepage"; |
| 21 static const wchar_t* kFolderArray[3] = {L"Google", L"Search", L"Page"}; | 22 static const wchar_t* kFolderArray[3] = {L"Google", L"Search", L"Page"}; |
| 22 | 23 |
| 23 static const wchar_t* kOtherTitle = L"MyOtherTitle"; | 24 static const wchar_t* kOtherTitle = L"MyOtherTitle"; |
| 24 static const char* kOtherUrl = "http://www.google.com/mail"; | 25 static const char* kOtherUrl = "http://www.google.com/mail"; |
| (...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 | 461 |
| 461 // Test case 13 tests when a bookmark has no <labels> section. | 462 // Test case 13 tests when a bookmark has no <labels> section. |
| 462 bookmark_xml = toolbar_importer_unittest::kBadBookmarkNoLabels; | 463 bookmark_xml = toolbar_importer_unittest::kBadBookmarkNoLabels; |
| 463 bookmarks.clear(); | 464 bookmarks.clear(); |
| 464 XmlReader reader13; | 465 XmlReader reader13; |
| 465 EXPECT_TRUE(reader13.Load(bookmark_xml)); | 466 EXPECT_TRUE(reader13.Load(bookmark_xml)); |
| 466 EXPECT_FALSE(Toolbar5Importer::ParseBookmarksFromReader(&reader13, | 467 EXPECT_FALSE(Toolbar5Importer::ParseBookmarksFromReader(&reader13, |
| 467 &bookmarks)); | 468 &bookmarks)); |
| 468 #endif | 469 #endif |
| 469 } | 470 } |
| OLD | NEW |