OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MOJO_EDK_SYSTEM_TEST_UTILS_H_ | 5 #ifndef MOJO_EDK_SYSTEM_TEST_UTILS_H_ |
6 #define MOJO_EDK_SYSTEM_TEST_UTILS_H_ | 6 #define MOJO_EDK_SYSTEM_TEST_UTILS_H_ |
7 | 7 |
8 #include "base/test/test_io_thread.h" | 8 #include "base/test/test_io_thread.h" |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "mojo/edk/test/scoped_ipc_support.h" | 10 #include "mojo/edk/test/scoped_ipc_support.h" |
11 #include "mojo/public/c/system/types.h" | |
12 #include "mojo/public/cpp/system/macros.h" | |
13 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 12 #include "third_party/mojo/src/mojo/public/c/system/types.h" |
| 13 #include "third_party/mojo/src/mojo/public/cpp/system/macros.h" |
14 | 14 |
15 namespace mojo { | 15 namespace mojo { |
16 namespace edk { | 16 namespace edk { |
17 namespace test { | 17 namespace test { |
18 | 18 |
19 MojoDeadline DeadlineFromMilliseconds(unsigned milliseconds); | 19 MojoDeadline DeadlineFromMilliseconds(unsigned milliseconds); |
20 | 20 |
21 // A timeout smaller than |TestTimeouts::tiny_timeout()|, as a |MojoDeadline|. | 21 // A timeout smaller than |TestTimeouts::tiny_timeout()|, as a |MojoDeadline|. |
22 // Warning: This may lead to flakiness, but this is unavoidable if, e.g., you're | 22 // Warning: This may lead to flakiness, but this is unavoidable if, e.g., you're |
23 // trying to ensure that functions with timeouts are reasonably accurate. We | 23 // trying to ensure that functions with timeouts are reasonably accurate. We |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 test::ScopedIPCSupport ipc_support_; | 69 test::ScopedIPCSupport ipc_support_; |
70 | 70 |
71 MOJO_DISALLOW_COPY_AND_ASSIGN(MojoSystemTest); | 71 MOJO_DISALLOW_COPY_AND_ASSIGN(MojoSystemTest); |
72 }; | 72 }; |
73 | 73 |
74 } // namespace test | 74 } // namespace test |
75 } // namespace edk | 75 } // namespace edk |
76 } // namespace mojo | 76 } // namespace mojo |
77 | 77 |
78 #endif // MOJO_EDK_SYSTEM_TEST_UTILS_H_ | 78 #endif // MOJO_EDK_SYSTEM_TEST_UTILS_H_ |
OLD | NEW |