| 1 | // Copyright 2013 The Flutter 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 | #ifndef FLUTTER_TESTING_POST_TASK_SYNC_H_ |
| 6 | #define FLUTTER_TESTING_POST_TASK_SYNC_H_ |
| 7 | |
| 8 | #include "flutter/fml/task_runner.h" |
| 9 | |
| 10 | namespace flutter { |
| 11 | namespace testing { |
| 12 | |
| 13 | void PostTaskSync(const fml::RefPtr<fml::TaskRunner>& task_runner, |
| 14 | const std::function<void()>& function); |
| 15 | |
| 16 | } // namespace testing |
| 17 | } // namespace flutter |
| 18 | |
| 19 | #endif // FLUTTER_TESTING_POST_TASK_SYNC_H_ |
| 20 | |