chromium/components/saved_tab_groups/saved_tab_group_unittest.cc

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

#include "components/saved_tab_groups/saved_tab_group.h"

#include "base/token.h"
#include "build/build_config.h"
#include "components/saved_tab_groups/saved_tab_group_tab.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
#include "url/url_constants.h"

namespace tab_groups {
namespace {

ElementsAre;

MATCHER_P(HasTabGuid, guid, "") {}

base::Uuid MakeUniqueGUID() {}

LocalTabID MakeUniqueTabID() {}

SavedTabGroup CreateDefaultEmptySavedTabGroup() {}

SavedTabGroupTab CreateDefaultSavedTabGroupTab(const base::Uuid& group_guid) {}

void AddTabToEndOfGroup(SavedTabGroup& group,
                        std::optional<base::Uuid> saved_guid = std::nullopt,
                        std::optional<LocalTabID> local_tab_id = std::nullopt) {}
}  // namespace

TEST(SavedTabGroupTest, GetTabByGUID) {}

TEST(SavedTabGroupTest, GetTabById) {}

TEST(SavedTabGroupTest, AddTabLocallyDisrespectsPositions) {}

TEST(SavedTabGroupTest, RemoveTabLocallyReordersPositions) {}

TEST(SavedTabGroupTest, AddTabFromSyncRespectsPositions) {}

TEST(SavedTabGroupTest, AddTabFromSyncUsesPositionAsIndexForSharedGroup) {}

TEST(SavedTabGroupTest, RemoveTabFromSyncMaintainsPositions) {}

TEST(SavedTabGroupTest, PinAndUnpin) {}

// Test updating the cache guid.
TEST(SavedTabGroupTest, UpdateCreatorCacheGuid) {}

}  // namespace tab_groups