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 // TODO(teravest): Re-enable test after Mojo IRT support is enabled in |
18 // Chrome. | |
dmichael (off chromium)
2015/02/09 17:13:08
nit: it would be good to reference the bug here.
| |
19 // RUN_TEST(CreateMessagePipe, filter); | |
18 } | 20 } |
19 | 21 |
20 std::string TestMojo::TestCreateMessagePipe() { | 22 std::string TestMojo::TestCreateMessagePipe() { |
21 MojoHandle h0; | 23 MojoHandle h0; |
22 MojoHandle h1; | 24 MojoHandle h1; |
23 ASSERT_EQ(MOJO_RESULT_OK, MojoCreateMessagePipe(NULL, &h0, &h1)); | 25 ASSERT_EQ(MOJO_RESULT_OK, MojoCreateMessagePipe(NULL, &h0, &h1)); |
24 PASS(); | 26 PASS(); |
25 } | 27 } |
OLD | NEW |