chromium/chrome/browser/upgrade_detector/directory_monitor_unittest.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 "chrome/browser/upgrade_detector/directory_monitor.h"

#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/run_loop.h"
#include "base/test/mock_callback.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

class DirectoryMonitorTest : public ::testing::Test {};

// Tests that the callback is not invoked when nothing happens.
TEST_F(DirectoryMonitorTest, NoNoise) {}

// Tests that the callback is invoked when the directory is modified.
TEST_F(DirectoryMonitorTest, OneChange) {}

// Tests that the callback is invoked multiple times for multiple
// modifications.
TEST_F(DirectoryMonitorTest, MultipleChanges) {}

// Tests that the callback is invoked when the directory's mtime is modified.
TEST_F(DirectoryMonitorTest, MtimeChange) {}