Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Side by Side Diff: ppapi/tests/mojo/test_mojo.cc

Issue 897093004: Pepper: Make Mojo test more strict. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698