chromium/third_party/blink/renderer/core/inspector/inspector_history_test.cc

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

#include "third_party/blink/renderer/core/inspector/inspector_history.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"

#include "testing/gtest/include/gtest/gtest.h"

namespace blink {

class TestAction : public InspectorHistory::Action {};

class PerformFailsAction final : public TestAction {};

class MergeableAction : public TestAction {};

// Becomes a no-op after merge.
class NoOpMergeableAction : public MergeableAction {};

TEST(InspectorHistoryTest, UndoEmptyHistorySucceeds) {}

TEST(InspectorHistoryTest, UndoUndoableMarkerSucceeds) {}

TEST(InspectorHistoryTest, PerformedActionIsPerformed) {}

TEST(InspectorHistoryTest, UndoPerformedAction) {}

TEST(InspectorHistoryTest, RedoUndoneAction) {}

TEST(InspectorHistoryTest, TwoActionsBothAreUndone) {}

TEST(InspectorHistoryTest, TwoActionsBothAreRedone) {}

TEST(InspectorHistoryTest, PerformFails) {}

TEST(InspectorHistoryTest, ResetClearsPerformedAction) {}

TEST(InspectorHistoryTest, MergeableActionIsNotStored) {}

TEST(InspectorHistoryTest, NoOpMergeableActionIsCleared) {}

TEST(InspectorHistoryTest, RedoEmptyHistorySucceeds) {}

}  // namespace blink