| OLD | NEW |
| (Empty) |
| 1 // Copyright 2013 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 // Function for sleeping in tests. (Please use sparingly.) | |
| 6 | |
| 7 #ifndef MOJO_EDK_SYSTEM_TEST_SLEEP_H_ | |
| 8 #define MOJO_EDK_SYSTEM_TEST_SLEEP_H_ | |
| 9 | |
| 10 #include "mojo/public/c/system/types.h" | |
| 11 | |
| 12 namespace mojo { | |
| 13 namespace system { | |
| 14 namespace test { | |
| 15 | |
| 16 // Sleeps for at least the specified duration. | |
| 17 void Sleep(MojoDeadline duration); | |
| 18 void SleepMilliseconds(unsigned duration_milliseconds); | |
| 19 | |
| 20 } // namespace test | |
| 21 } // namespace system | |
| 22 } // namespace mojo | |
| 23 | |
| 24 #endif // MOJO_EDK_SYSTEM_TEST_SLEEP_H_ | |
| OLD | NEW |