#include "base/trace_event/memory_dump_scheduler.h"
#include <memory>
#include "base/functional/bind.h"
#include "base/synchronization/waitable_event.h"
#include "base/task/single_thread_task_runner.h"
#include "base/threading/thread.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
AtMost;
Invoke;
_;
namespace base {
namespace trace_event {
namespace {
struct CallbackWrapper { … };
}
class MemoryDumpSchedulerTest : public testing::Test { … };
TEST_F(MemoryDumpSchedulerTest, SingleTrigger) { … }
TEST_F(MemoryDumpSchedulerTest, MultipleTriggers) { … }
TEST_F(MemoryDumpSchedulerTest, StartStopQuickly) { … }
TEST_F(MemoryDumpSchedulerTest, StopAndStartOnAnotherThread) { … }
}
}