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

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

Issue 16561007: Use a direct include of utf_string_conversions.h in chrome/browser/, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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
OLDNEW
1 // Copyright (c) 2012 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 "chrome/browser/importer/importer_unittest_utils.h" 5 #include "chrome/browser/importer/importer_unittest_utils.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "chrome/browser/bookmarks/imported_bookmark_entry.h" 8 #include "chrome/browser/bookmarks/imported_bookmark_entry.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
11 void TestEqualBookmarkEntry(const ImportedBookmarkEntry& entry, 11 void TestEqualBookmarkEntry(const ImportedBookmarkEntry& entry,
12 const BookmarkInfo& expected) { 12 const BookmarkInfo& expected) {
13 ASSERT_EQ(WideToUTF16Hack(expected.title), entry.title); 13 ASSERT_EQ(WideToUTF16Hack(expected.title), entry.title);
14 ASSERT_EQ(expected.in_toolbar, entry.in_toolbar) << entry.title; 14 ASSERT_EQ(expected.in_toolbar, entry.in_toolbar) << entry.title;
15 ASSERT_EQ(expected.path_size, entry.path.size()) << entry.title; 15 ASSERT_EQ(expected.path_size, entry.path.size()) << entry.title;
16 ASSERT_EQ(expected.url, entry.url.spec()) << entry.title; 16 ASSERT_EQ(expected.url, entry.url.spec()) << entry.title;
17 for (size_t i = 0; i < expected.path_size; ++i) 17 for (size_t i = 0; i < expected.path_size; ++i)
18 ASSERT_EQ(WideToUTF16Hack(expected.path[i]), entry.path[i]) << entry.title; 18 ASSERT_EQ(WideToUTF16Hack(expected.path[i]), entry.path[i]) << entry.title;
19 } 19 }
OLDNEW
« no previous file with comments | « chrome/browser/importer/importer_host.cc ('k') | chrome/browser/importer/in_process_importer_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698