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 #include "mojo/public/system/core_cpp.h" | 5 #include "mojo/public/system/core_cpp.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 | 8 |
9 #include "mojo/public/system/macros.h" | 9 #include "mojo/public/c/system/macros.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
11 | 11 |
12 namespace mojo { | 12 namespace mojo { |
13 namespace { | 13 namespace { |
14 | 14 |
15 TEST(CoreCppTest, GetTimeTicksNow) { | 15 TEST(CoreCppTest, GetTimeTicksNow) { |
16 const MojoTimeTicks start = GetTimeTicksNow(); | 16 const MojoTimeTicks start = GetTimeTicksNow(); |
17 EXPECT_NE(static_cast<MojoTimeTicks>(0), start) | 17 EXPECT_NE(static_cast<MojoTimeTicks>(0), start) |
18 << "GetTimeTicksNow should return nonzero value"; | 18 << "GetTimeTicksNow should return nonzero value"; |
19 } | 19 } |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 EXPECT_EQ(MOJO_RESULT_OK, MojoClose(h2.release().value())); | 379 EXPECT_EQ(MOJO_RESULT_OK, MojoClose(h2.release().value())); |
380 EXPECT_EQ(MOJO_RESULT_OK, MojoClose(h0.release().value())); | 380 EXPECT_EQ(MOJO_RESULT_OK, MojoClose(h0.release().value())); |
381 EXPECT_EQ(MOJO_RESULT_OK, MojoClose(h1.release().value())); | 381 EXPECT_EQ(MOJO_RESULT_OK, MojoClose(h1.release().value())); |
382 } | 382 } |
383 } | 383 } |
384 | 384 |
385 // TODO(vtl): Write data pipe tests. | 385 // TODO(vtl): Write data pipe tests. |
386 | 386 |
387 } // namespace | 387 } // namespace |
388 } // namespace mojo | 388 } // namespace mojo |
OLD | NEW |