#include "media/midi/task_service.h"
#include <memory>
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/ref_counted.h"
#include "base/run_loop.h"
#include "base/synchronization/lock.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/test_simple_task_runner.h"
#include "base/time/time.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace midi {
namespace {
enum { … };
base::WaitableEvent* GetEvent() { … }
void SignalEvent() { … }
void WaitEvent() { … }
void ResetEvent() { … }
class TaskServiceClient { … };
class MidiTaskServiceTest : public ::testing::Test { … };
TEST_F(MidiTaskServiceTest, RunUnauthorizedBoundTask) { … }
TEST_F(MidiTaskServiceTest, BindTwice) { … }
TEST_F(MidiTaskServiceTest, RunStaticTask) { … }
TEST_F(MidiTaskServiceTest, RunBoundTasks) { … }
TEST_F(MidiTaskServiceTest, RunBlockingTask) { … }
TEST_F(MidiTaskServiceTest, RunBoundDelayedTask) { … }
TEST_F(MidiTaskServiceTest, RunBoundTaskOnDefaultRunner) { … }
}
}