chromium/chrome/utility/importer/bookmark_html_reader_unittest.cc

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "chrome/utility/importer/bookmark_html_reader.h"

#include <stddef.h>

#include <string>

#include "base/files/file_path.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/functional/callback_helpers.h"
#include "base/path_service.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "base/time/time.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/importer/imported_bookmark_entry.h"
#include "testing/gtest/include/gtest/gtest.h"

ASCIIToUTF16;
UTF16ToWide;

namespace bookmark_html_reader {

TEST(BookmarkHTMLReaderTest, ParseTests) {}

TEST(BookmarkHTMLReaderTest, CanImportURLAsSearchEngineTest) {}

namespace {

class BookmarkHTMLReaderTestWithData : public testing::Test {};

void BookmarkHTMLReaderTestWithData::SetUp() {}

void BookmarkHTMLReaderTestWithData::ExpectFirstFirefox2Bookmark(
    const ImportedBookmarkEntry& entry) {}

void BookmarkHTMLReaderTestWithData::ExpectSecondFirefox2Bookmark(
    const ImportedBookmarkEntry& entry) {}

void BookmarkHTMLReaderTestWithData::ExpectThirdFirefox2Bookmark(
    const ImportedBookmarkEntry& entry) {}

void BookmarkHTMLReaderTestWithData::ExpectFirstEpiphanyBookmark(
    const ImportedBookmarkEntry& entry) {}

void BookmarkHTMLReaderTestWithData::ExpectSecondEpiphanyBookmark(
    const ImportedBookmarkEntry& entry) {}

void BookmarkHTMLReaderTestWithData::ExpectFirstFirefox23Bookmark(
    const ImportedBookmarkEntry& entry) {}

void BookmarkHTMLReaderTestWithData::ExpectSecondFirefox23Bookmark(
    const ImportedBookmarkEntry& entry) {}

void BookmarkHTMLReaderTestWithData::ExpectThirdFirefox23Bookmark(
    const ImportedBookmarkEntry& entry) {}

void BookmarkHTMLReaderTestWithData::ExpectFirstFirefoxBookmarkWithKeyword(
    const importer::SearchEngineInfo& info) {}

void BookmarkHTMLReaderTestWithData::ExpectSecondFirefoxBookmarkWithKeyword(
    const importer::SearchEngineInfo& info) {}

void BookmarkHTMLReaderTestWithData::ExpectFirstEmptyFolderBookmark(
    const ImportedBookmarkEntry& entry) {}

void BookmarkHTMLReaderTestWithData::ExpectSecondEmptyFolderBookmark(
    const ImportedBookmarkEntry& entry) {}

}  // namespace

TEST_F(BookmarkHTMLReaderTestWithData, Firefox2BookmarkFileImport) {}

TEST_F(BookmarkHTMLReaderTestWithData, BookmarkFileWithHrTagImport) {}

TEST_F(BookmarkHTMLReaderTestWithData, EpiphanyBookmarkFileImport) {}

TEST_F(BookmarkHTMLReaderTestWithData, FirefoxBookmarkFileWithKeywordImport) {}

TEST_F(BookmarkHTMLReaderTestWithData, EmptyFolderImport) {}

TEST_F(BookmarkHTMLReaderTestWithData,
       RedditSaverFileImport) {}

// Verifies that importing a bookmarks file without a charset specified succeeds
// (by falling back to a default charset). Per [ http://crbug.com/460423 ], this
// sort of bookmarks file is generated by IE.
TEST_F(BookmarkHTMLReaderTestWithData,
       InternetExplorerBookmarkFileWithoutCharsetImport) {}

namespace {

class CancelAfterFifteenCalls {};

}  // namespace

TEST_F(BookmarkHTMLReaderTestWithData, CancellationCallback) {}

namespace {

bool IsURLValid(const GURL& url) {}

}  // namespace

TEST_F(BookmarkHTMLReaderTestWithData, ValidURLCallback) {}

}  // namespace bookmark_html_reader