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

Side by Side Diff: chrome/browser/importer/toolbar_importer_unittest.cc

Issue 10251004: Move libxml_utils from chrome/common to third_party/libxml/chromium. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: chromium/include/libxml/ --> chromium/. Created 8 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/importer/toolbar_importer.cc ('k') | chrome/chrome_common.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 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 "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 "base/string16.h" 10 #include "base/string16.h"
11 #include "base/string_util.h" 11 #include "base/string_util.h"
12 #include "base/utf_string_conversions.h" 12 #include "base/utf_string_conversions.h"
13 #include "chrome/browser/first_run/first_run.h" 13 #include "chrome/browser/first_run/first_run.h"
14 #include "chrome/browser/first_run/first_run_internal.h" 14 #include "chrome/browser/first_run/first_run_internal.h"
15 #include "chrome/browser/importer/toolbar_importer.h" 15 #include "chrome/browser/importer/toolbar_importer.h"
16 #include "chrome/common/libxml_utils.h"
17 #include "googleurl/src/gurl.h" 16 #include "googleurl/src/gurl.h"
17 #include "third_party/libxml/chromium/libxml_utils.h"
18 18
19 // See http://crbug.com/11838 19 // See http://crbug.com/11838
20 TEST(Toolbar5ImporterTest, BookmarkParse) { 20 TEST(Toolbar5ImporterTest, BookmarkParse) {
21 static const string16 kTitle = ASCIIToUTF16("MyTitle"); 21 static const string16 kTitle = ASCIIToUTF16("MyTitle");
22 static const char kUrl[] = "http://www.google.com/"; 22 static const char kUrl[] = "http://www.google.com/";
23 static const string16 kFolder = ASCIIToUTF16("Google"); 23 static const string16 kFolder = ASCIIToUTF16("Google");
24 static const string16 kFolder2 = ASCIIToUTF16("Homepage"); 24 static const string16 kFolder2 = ASCIIToUTF16("Homepage");
25 static const string16 kFolderArray[3] = { 25 static const string16 kFolderArray[3] = {
26 ASCIIToUTF16("Google"), 26 ASCIIToUTF16("Google"),
27 ASCIIToUTF16("Search"), 27 ASCIIToUTF16("Search"),
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 &bookmarks, kBookmarkGroupTitle)); 478 &bookmarks, kBookmarkGroupTitle));
479 479
480 // Test case 13 tests when a bookmark has no <labels> section. 480 // Test case 13 tests when a bookmark has no <labels> section.
481 bookmark_xml = kBadBookmarkNoLabels; 481 bookmark_xml = kBadBookmarkNoLabels;
482 bookmarks.clear(); 482 bookmarks.clear();
483 XmlReader reader13; 483 XmlReader reader13;
484 EXPECT_TRUE(reader13.Load(bookmark_xml)); 484 EXPECT_TRUE(reader13.Load(bookmark_xml));
485 EXPECT_FALSE(Toolbar5Importer::ParseBookmarksFromReader(&reader13, 485 EXPECT_FALSE(Toolbar5Importer::ParseBookmarksFromReader(&reader13,
486 &bookmarks, kBookmarkGroupTitle)); 486 &bookmarks, kBookmarkGroupTitle));
487 } 487 }
OLDNEW
« no previous file with comments | « chrome/browser/importer/toolbar_importer.cc ('k') | chrome/chrome_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698