blob: 753c2f5cc36c18db918dd9132fc300391af428cb [file] [log] [blame]
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/importer/importer_unittest_utils.h"
#include "base/logging.h"
#include "base/strings/utf_string_conversions.h"
#include "components/user_data_importer/common/imported_bookmark_entry.h"
#include "testing/gtest/include/gtest/gtest.h"
void TestEqualBookmarkEntry(
const user_data_importer::ImportedBookmarkEntry& entry,
const BookmarkInfo& expected) {
ASSERT_EQ(base::WideToUTF16(expected.title), entry.title);
ASSERT_EQ(expected.in_toolbar, entry.in_toolbar) << entry.title;
ASSERT_EQ(expected.path_size, entry.path.size()) << entry.title;
ASSERT_EQ(expected.url, entry.url.spec()) << entry.title;
for (size_t i = 0; i < expected.path_size; ++i) {
ASSERT_EQ(base::ASCIIToUTF16(expected.path[i]),
entry.path[i]) << entry.title;
}
}