OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "ppapi/tests/mojo/test_mojo.h" | 5 #include "ppapi/tests/mojo/test_mojo.h" |
6 | 6 |
7 #include "third_party/mojo/src/mojo/public/cpp/system/message_pipe.h" | 7 #include "third_party/mojo/src/mojo/public/cpp/system/message_pipe.h" |
8 | 8 |
9 REGISTER_TEST_CASE(Mojo); | 9 REGISTER_TEST_CASE(Mojo); |
10 | 10 |
11 TestMojo::TestMojo(TestingInstance* instance) : TestCase(instance) { } | 11 TestMojo::TestMojo(TestingInstance* instance) : TestCase(instance) { } |
12 bool TestMojo::Init() { | 12 bool TestMojo::Init() { |
13 return true; | 13 return true; |
14 } | 14 } |
15 | 15 |
16 void TestMojo::RunTests(const std::string& filter) { | 16 void TestMojo::RunTests(const std::string& filter) { |
17 RUN_TEST(CreateMessagePipe, filter); | 17 RUN_TEST(CreateMessagePipe, filter); |
18 } | 18 } |
19 | 19 |
20 std::string TestMojo::TestCreateMessagePipe() { | 20 std::string TestMojo::TestCreateMessagePipe() { |
21 mojo::MessagePipe pipe; | 21 MojoHandle h0; |
| 22 MojoHandle h1; |
| 23 ASSERT_EQ(MOJO_RESULT_OK, MojoCreateMessagePipe(NULL, &h0, &h1)); |
22 PASS(); | 24 PASS(); |
23 } | 25 } |
OLD | NEW |