#include "base/files/important_file_writer_cleaner.h"
#include <optional>
#include "base/check.h"
#include "base/files/file.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/task/thread_pool.h"
#include "base/test/bind.h"
#include "base/test/task_environment.h"
#include "base/test/test_waitable_event.h"
#include "base/time/time.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
ElementsAre;
namespace base {
class ImportantFileWriterCleanerTest : public ::testing::Test { … };
void ImportantFileWriterCleanerTest::SetUp() { … }
void ImportantFileWriterCleanerTest::TearDown() { … }
TEST_F(ImportantFileWriterCleanerTest, NotInitializedNoOpAdd) { … }
TEST_F(ImportantFileWriterCleanerTest, NotStartedNoOpAdd) { … }
TEST_F(ImportantFileWriterCleanerTest, StartStop) { … }
TEST_F(ImportantFileWriterCleanerTest, AddStart) { … }
TEST_F(ImportantFileWriterCleanerTest, AddAddStart) { … }
TEST_F(ImportantFileWriterCleanerTest, StartAdd) { … }
TEST_F(ImportantFileWriterCleanerTest, StartTwice) { … }
TEST_F(ImportantFileWriterCleanerTest, AddTwice) { … }
TEST_F(ImportantFileWriterCleanerTest, StartAddFromOtherThread) { … }
TEST_F(ImportantFileWriterCleanerTest, AddStartAdd) { … }
TEST_F(ImportantFileWriterCleanerTest, StopWhileRunning) { … }
}