chromium/components/undo/undo_manager_test.cc

// Copyright 2013 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/undo/undo_manager.h"

#include <memory>

#include "base/auto_reset.h"
#include "base/memory/raw_ptr.h"
#include "components/undo/undo_manager_observer.h"
#include "components/undo/undo_operation.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace {

std::vector<UndoOperation*> ConvertToRawPtrVector(
    const std::vector<std::unique_ptr<UndoOperation>>& args) {}

}  // namespace

// UndoManagerTestApi ----------------------------------------------------------

class UndoManagerTestApi {};

std::vector<UndoOperation*> UndoManagerTestApi::GetAllUndoOperations(
    const UndoManager& undo_manager) {}

namespace {

class TestUndoOperation;

// TestUndoService -------------------------------------------------------------

class TestUndoService {};

// TestUndoOperation -----------------------------------------------------------

class TestUndoOperation : public UndoOperation {};

TestUndoOperation::TestUndoOperation(TestUndoService* undo_service)
      :{}

TestUndoOperation::~TestUndoOperation() {}

void TestUndoOperation::Undo() {}

int TestUndoOperation::GetUndoLabelId() const {}

int TestUndoOperation::GetRedoLabelId() const {}

// TestUndoService -------------------------------------------------------------

TestUndoService::TestUndoService() :{}

TestUndoService::~TestUndoService() {}

void TestUndoService::Redo() {}

void TestUndoService::TriggerOperation() {}

void TestUndoService::RecordUndoCall() {}

// TestObserver ----------------------------------------------------------------

class TestObserver : public UndoManagerObserver {};

// Tests -----------------------------------------------------------------------

TEST(UndoServiceTest, AddUndoActions) {}

TEST(UndoServiceTest, UndoMultipleActions) {}

TEST(UndoServiceTest, RedoAction) {}

TEST(UndoServiceTest, GroupActions) {}

TEST(UndoServiceTest, SuspendUndoTracking) {}

TEST(UndoServiceTest, RedoEmptyAfterNewAction) {}

TEST(UndoServiceTest, GetAllUndoOperations) {}

TEST(UndoServiceTest, ObserverCallbacks) {}

} // namespace