#include "third_party/blink/renderer/controller/memory_usage_monitor.h"
#include <memory>
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/testing/unit_test_helpers.h"
namespace blink {
class CountingObserver : public MemoryUsageMonitor::Observer { … };
class MemoryUsageMonitorTest : public testing::Test { … };
TEST_F(MemoryUsageMonitorTest, StartStopMonitor) { … }
class OneShotObserver : public CountingObserver { … };
TEST_F(MemoryUsageMonitorTest, RemoveObserverFromNotification) { … }
}