This source file includes following definitions.
- TestEqualBookmarkEntry
#include "chrome/browser/importer/importer_unittest_utils.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/common/importer/imported_bookmark_entry.h"
#include "testing/gtest/include/gtest/gtest.h"
void TestEqualBookmarkEntry(const ImportedBookmarkEntry& entry,
const BookmarkInfo& expected) {
ASSERT_EQ(base::WideToUTF16Hack(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::WideToUTF16Hack(expected.path[i]),
entry.path[i]) << entry.title;
}
}