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

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

Issue 3043030: Move browser/first_run* into into a subdirectory. (Closed)
Patch Set: Created 10 years, 4 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
Miranda Callahan 2010/07/29 23:36:16 Nit: 2010
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 "chrome/browser/first_run.h" 12 #include "chrome/browser/first_run/first_run.h"
13 #include "chrome/browser/importer/importer.h" 13 #include "chrome/browser/importer/importer.h"
14 #include "chrome/browser/importer/toolbar_importer.h" 14 #include "chrome/browser/importer/toolbar_importer.h"
15 #include "chrome/common/libxml_utils.h" 15 #include "chrome/common/libxml_utils.h"
16 #include "googleurl/src/gurl.h" 16 #include "googleurl/src/gurl.h"
17 17
18 // See http://crbug.com/11838 18 // See http://crbug.com/11838
19 TEST(Toolbar5ImporterTest, BookmarkParse) { 19 TEST(Toolbar5ImporterTest, BookmarkParse) {
20 static const wchar_t* kTitle = L"MyTitle"; 20 static const wchar_t* kTitle = L"MyTitle";
21 static const char* kUrl = "http://www.google.com/"; 21 static const char* kUrl = "http://www.google.com/";
22 static const wchar_t* kFolder = L"Google"; 22 static const wchar_t* kFolder = L"Google";
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 &bookmarks, kBookmarkGroupTitle)); 474 &bookmarks, kBookmarkGroupTitle));
475 475
476 // Test case 13 tests when a bookmark has no <labels> section. 476 // Test case 13 tests when a bookmark has no <labels> section.
477 bookmark_xml = kBadBookmarkNoLabels; 477 bookmark_xml = kBadBookmarkNoLabels;
478 bookmarks.clear(); 478 bookmarks.clear();
479 XmlReader reader13; 479 XmlReader reader13;
480 EXPECT_TRUE(reader13.Load(bookmark_xml)); 480 EXPECT_TRUE(reader13.Load(bookmark_xml));
481 EXPECT_FALSE(Toolbar5Importer::ParseBookmarksFromReader(&reader13, 481 EXPECT_FALSE(Toolbar5Importer::ParseBookmarksFromReader(&reader13,
482 &bookmarks, kBookmarkGroupTitle)); 482 &bookmarks, kBookmarkGroupTitle));
483 } 483 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698