#include "components/sync_bookmarks/bookmark_local_data_batch_uploader.h"
#include <memory>
#include <utility>
#include "base/test/scoped_feature_list.h"
#include "base/test/test_future.h"
#include "components/bookmarks/browser/bookmark_model.h"
#include "components/bookmarks/browser/bookmark_node.h"
#include "components/bookmarks/test/test_bookmark_client.h"
#include "components/sync/base/features.h"
#include "components/sync/service/local_data_description.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
namespace sync_bookmarks {
namespace {
ElementsAre;
IsEmpty;
MATCHER_P2(MatchesTitleAndUrl, title, url, "") { … }
class BookmarkLocalDataBatchUploaderTest : public ::testing::Test { … };
TEST_F(BookmarkLocalDataBatchUploaderTest, LocalDescriptionEmptyIfNullModel) { … }
TEST_F(BookmarkLocalDataBatchUploaderTest,
LocalDescriptionEmptyIfModelNotLoaded) { … }
TEST_F(BookmarkLocalDataBatchUploaderTest,
LocalDescriptionEmptyIfTransportModeOff) { … }
TEST_F(BookmarkLocalDataBatchUploaderTest, LocalDescriptionOnlyHasLocalData) { … }
TEST_F(BookmarkLocalDataBatchUploaderTest, LocalDescriptionHasNoFolders) { … }
TEST_F(BookmarkLocalDataBatchUploaderTest, LocalDescriptionHasSortedDomains) { … }
TEST_F(BookmarkLocalDataBatchUploaderTest, LocalDescriptionHasNoManagedUrls) { … }
TEST_F(BookmarkLocalDataBatchUploaderTest, MigrationNoOpsIfNullModel) { … }
TEST_F(BookmarkLocalDataBatchUploaderTest, MigrationNoOpsIfModelNotLoaded) { … }
TEST_F(BookmarkLocalDataBatchUploaderTest, MigrationNoOpsIfTransportModeOff) { … }
TEST_F(BookmarkLocalDataBatchUploaderTest,
MigrationNoOpsIfAccountNodesMissing) { … }
TEST_F(BookmarkLocalDataBatchUploaderTest, MigrationUploadsLocalBookmarks) { … }
}
}