chromium/chrome/browser/ui/webui/tab_strip/thumbnail_tracker_unittest.cc

// Copyright 2019 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/ui/webui/tab_strip/thumbnail_tracker.h"

#include <map>
#include <memory>
#include <utility>

#include "base/functional/callback.h"
#include "base/run_loop.h"
#include "base/test/mock_callback.h"
#include "chrome/browser/extensions/extension_tab_util.h"
#include "chrome/browser/sessions/session_tab_helper_factory.h"
#include "chrome/browser/ui/thumbnails/thumbnail_image.h"
#include "chrome/test/base/testing_profile.h"
#include "content/public/test/browser_task_environment.h"
#include "content/public/test/test_renderer_host.h"
#include "content/public/test/web_contents_tester.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkBitmap.h"

namespace {

class TestThumbnailImageDelegate : public ThumbnailImage::Delegate {};

class ThumbnailTrackerTest : public ::testing::Test,
                             public ThumbnailImage::Delegate {};

}  // namespace

_;

TEST_F(ThumbnailTrackerTest, AddTabGetsCurrentThumbnail) {}

TEST_F(ThumbnailTrackerTest, PropagatesThumbnailUpdate) {}

TEST_F(ThumbnailTrackerTest, StopsObservingOnTabClose) {}

TEST_F(ThumbnailTrackerTest, RemoveTabStopsObservingThumbnail) {}