Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / importer / importer_unittest_utils.cc
blob284a6f9f2956060ae5d596784869b658101d193d
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
3 // found in the LICENSE file.
5 #include "chrome/browser/importer/importer_unittest_utils.h"
7 #include "base/strings/utf_string_conversions.h"
8 #include "chrome/common/importer/imported_bookmark_entry.h"
9 #include "testing/gtest/include/gtest/gtest.h"
11 void TestEqualBookmarkEntry(const ImportedBookmarkEntry& entry,
12 const BookmarkInfo& expected) {
13 ASSERT_EQ(base::WideToUTF16Hack(expected.title), entry.title);
14 ASSERT_EQ(expected.in_toolbar, entry.in_toolbar) << entry.title;
15 ASSERT_EQ(expected.path_size, entry.path.size()) << entry.title;
16 ASSERT_EQ(expected.url, entry.url.spec()) << entry.title;
17 for (size_t i = 0; i < expected.path_size; ++i) {
18 ASSERT_EQ(base::WideToUTF16Hack(expected.path[i]),
19 entry.path[i]) << entry.title;