| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // This file declares a factory function (which must be implemented by the |
| 6 // embedder) for message loops to be used in tests. |
| 7 |
| 8 #ifndef MOJO_EDK_PLATFORM_TEST_MESSAGE_LOOP_H_ |
| 9 #define MOJO_EDK_PLATFORM_TEST_MESSAGE_LOOP_H_ |
| 10 |
| 11 #include <memory> |
| 12 |
| 13 #include "mojo/edk/platform/message_loop.h" |
| 14 |
| 15 namespace mojo { |
| 16 namespace platform { |
| 17 namespace test { |
| 18 |
| 19 // Creates a basic |platform::MessageLoop|, to be used by tests. This must be |
| 20 // implemented by the embedder (if building tests that require it). |
| 21 std::unique_ptr<MessageLoop> CreateTestMessageLoop(); |
| 22 |
| 23 } // namespace test |
| 24 } // namespace platform |
| 25 } // namespace mojo |
| 26 |
| 27 #endif // MOJO_EDK_PLATFORM_TEST_MESSAGE_LOOP_H_ |
| OLD | NEW |