chromium/pdf/pdf_ink_undo_redo_model_unittest.cc

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

#include "pdf/pdf_ink_undo_redo_model.h"

#include <stddef.h>

#include <numeric>
#include <optional>
#include <set>

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

ElementsAreArray;
Optional;

namespace chrome_pdf {

DiscardedDrawCommands;
using enum PdfInkUndoRedoModel::CommandsType;

namespace {

// Shorthand for test setup that is expected to succeed.
void DoDrawCommandsCycle(PdfInkUndoRedoModel& undo_redo,
                         const std::set<size_t>& ids) {}

TEST(PdfInkUndoRedoModelTest, BadActionDoubleStartDraw) {}

TEST(PdfInkUndoRedoModelTest, BadActionSpuriousDraw) {}

TEST(PdfInkUndoRedoModelTest, BadActionSpuriousFinishDraw) {}

TEST(PdfInkUndoRedoModelTest, BadActionEraseWhileDrawing) {}

TEST(PdfInkUndoRedoModelTest, BadActionDoubleStartErase) {}

TEST(PdfInkUndoRedoModelTest, BadActionSpuriousErase) {}

TEST(PdfInkUndoRedoModelTest, BadActionSpuriousFinishErase) {}

TEST(PdfInkUndoRedoModelTest, BadActionDrawWhileErasing) {}

TEST(PdfInkUndoRedoModelTest, BadActionSpuriousDrawAfterUndo) {}

TEST(PdfInkUndoRedoModelTest, BadActionSpuriousFinishDrawAfterUndo) {}

TEST(PdfInkUndoRedoModelTest, BadActionSpuriousEraseAfterUndo) {}

TEST(PdfInkUndoRedoModelTest, BadActionSpuriousFinishEraseAfterUndo) {}

TEST(PdfInkUndoRedoModelTest, BadActionEraseUnknownId) {}

TEST(PdfInkUndoRedoModelTest, BadActionEraseTwice) {}

TEST(PdfInkUndoRedoModelTest, Empty) {}

TEST(PdfInkUndoRedoModelTest, EmptyDraw) {}

TEST(PdfInkUndoRedoModelTest, EmptyErase) {}

TEST(PdfInkUndoRedoModelTest, DrawCannotRepeatId) {}

TEST(PdfInkUndoRedoModelTest, DrawCanRepeatIdAfterUndo) {}

TEST(PdfInkUndoRedoModelTest, DrawUndoRedo) {}

TEST(PdfInkUndoRedoModelTest, DrawDrawEraseUndoRedo) {}

TEST(PdfInkUndoRedoModelTest, DrawDrawUndoEraseUndo) {}

// TODO(crbug.com/335521182): Figure out why this times out on bots and enable.
TEST(PdfInkUndoRedoModelTest, DISABLED_Stress) {}

}  // namespace

}  // namespace chrome_pdf