#include "chrome/browser/ui/thumbnails/thumbnail_scheduler_impl.h"
#include <vector>
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
class FakeTabCapturer : public ThumbnailScheduler::TabCapturer { … };
}
_;
ElementsAre;
class ThumbnailSchedulerImplTest : public ::testing::Test { … };
TEST_F(ThumbnailSchedulerImplTest, TabsNotScheduledIfCaptureNotNeeded) { … }
TEST_F(ThumbnailSchedulerImplTest, HighPriorityCapturesScheduledUpToMax) { … }
TEST_F(ThumbnailSchedulerImplTest, LowPriorityCapturesScheduledUpToMax) { … }
TEST_F(ThumbnailSchedulerImplTest, HighPriorityCapturesPreemptLowPriority) { … }
TEST_F(ThumbnailSchedulerImplTest, NewTabScheduledWhenCaptureFinished) { … }
TEST_F(ThumbnailSchedulerImplTest, PreemptsOnPriorityDowngrade) { … }
TEST_F(ThumbnailSchedulerImplTest, PreemptsOnPriorityUpgrade) { … }
TEST_F(ThumbnailSchedulerImplTest,
LowPriorityCaptureContinuesOnPriorityUpgrade) { … }
TEST_F(ThumbnailSchedulerImplTest, CaptureStopsOnPriorityNone) { … }