#include "content/browser/memory/swap_metrics_driver_impl.h"
#include <memory>
#include "base/memory/ptr_util.h"
#include "base/test/task_environment.h"
#include "base/threading/platform_thread.h"
#include "base/time/time.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace content {
namespace {
class MockSwapMetricsDriver : public SwapMetricsDriverImpl { … };
class SwapMetricsDelegateCounter : public SwapMetricsDriver::Delegate { … };
constexpr base::TimeDelta kUpdateDelay = …;
}
class TestSwapMetricsDriver : public testing::Test { … };
TEST_F(TestSwapMetricsDriver, ExpectedMetricCounts) { … }
TEST_F(TestSwapMetricsDriver, TimerStartSuccess) { … }
TEST_F(TestSwapMetricsDriver, TimerStartFail) { … }
TEST_F(TestSwapMetricsDriver, UpdateMetricsFail) { … }
}