#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 {
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) { … }
TEST(PdfInkUndoRedoModelTest, DISABLED_Stress) { … }
}
}