diff options
Diffstat (limited to 'base/test/test_message_loop.cc')
-rw-r--r-- | base/test/test_message_loop.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/base/test/test_message_loop.cc b/base/test/test_message_loop.cc new file mode 100644 index 0000000000..bd3610fe65 --- /dev/null +++ b/base/test/test_message_loop.cc @@ -0,0 +1,18 @@ +// Copyright 2016 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "base/run_loop.h" +#include "base/test/test_message_loop.h" + +namespace base { + +TestMessageLoop::TestMessageLoop() = default; + +TestMessageLoop::TestMessageLoop(MessageLoop::Type type) : loop_(type) {} + +TestMessageLoop::~TestMessageLoop() { + RunLoop().RunUntilIdle(); +} + +} // namespace base |