| 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 // This file tests the C++ Mojo system core wrappers. |
| 6 // TODO(vtl): Maybe rename "CoreCppTest" -> "CoreTest" if/when this gets |
| 7 // compiled into a different binary from the C API tests. |
| 8 |
| 9 #include "mojo/public/cpp/system/core.h" |
| 6 | 10 |
| 7 #include <map> | 11 #include <map> |
| 8 | 12 |
| 9 #include "mojo/public/c/system/macros.h" | 13 #include "mojo/public/c/system/macros.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 11 | 15 |
| 12 namespace mojo { | 16 namespace mojo { |
| 13 namespace { | 17 namespace { |
| 14 | 18 |
| 15 TEST(CoreCppTest, GetTimeTicksNow) { | 19 TEST(CoreCppTest, GetTimeTicksNow) { |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 EXPECT_EQ(MOJO_RESULT_OK, MojoClose(h2.release().value())); | 383 EXPECT_EQ(MOJO_RESULT_OK, MojoClose(h2.release().value())); |
| 380 EXPECT_EQ(MOJO_RESULT_OK, MojoClose(h0.release().value())); | 384 EXPECT_EQ(MOJO_RESULT_OK, MojoClose(h0.release().value())); |
| 381 EXPECT_EQ(MOJO_RESULT_OK, MojoClose(h1.release().value())); | 385 EXPECT_EQ(MOJO_RESULT_OK, MojoClose(h1.release().value())); |
| 382 } | 386 } |
| 383 } | 387 } |
| 384 | 388 |
| 385 // TODO(vtl): Write data pipe tests. | 389 // TODO(vtl): Write data pipe tests. |
| 386 | 390 |
| 387 } // namespace | 391 } // namespace |
| 388 } // namespace mojo | 392 } // namespace mojo |
| OLD | NEW |