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

Side by Side Diff: ppapi/tests/test_message_handler.h

Issue 564573002: PPAPI: Make PPP_MessageHandler work in PNaCl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge Created 6 years, 3 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 | « ppapi/proxy/ppb_instance_proxy.cc ('k') | ppapi/tests/test_message_handler.cc » ('j') | 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 #ifndef PPAPI_TESTS_TEST_MESSAGE_HANDLER_H_ 5 #ifndef PPAPI_TESTS_TEST_MESSAGE_HANDLER_H_
6 #define PPAPI_TESTS_TEST_MESSAGE_HANDLER_H_ 6 #define PPAPI_TESTS_TEST_MESSAGE_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "ppapi/c/ppb_messaging.h" 11 #include "ppapi/c/ppb_messaging.h"
12 #include "ppapi/tests/test_case.h" 12 #include "ppapi/tests/test_case.h"
13 #include "ppapi/utility/threading/simple_thread.h" 13 #include "ppapi/utility/threading/simple_thread.h"
14 14
15 class TestMessageHandler : public TestCase { 15 class TestMessageHandler : public TestCase {
16 public: 16 public:
17 explicit TestMessageHandler(TestingInstance* instance); 17 explicit TestMessageHandler(TestingInstance* instance);
18 virtual ~TestMessageHandler(); 18 virtual ~TestMessageHandler();
19 19
20 private: 20 private:
21 // TestCase implementation. 21 // TestCase implementation.
22 virtual bool Init(); 22 virtual bool Init();
23 virtual void RunTests(const std::string& filter); 23 virtual void RunTests(const std::string& filter);
24 virtual void HandleMessage(const pp::Var& message_data); 24 virtual void HandleMessage(const pp::Var& message_data);
25 25
26 std::string TestRegisterErrorConditions(); 26 std::string TestRegisterErrorConditions();
27 std::string TestPostMessageAndAwaitResponse(); 27 std::string TestPostMessageAndAwaitResponse();
28 28
29 const PPB_Messaging_1_1* ppb_messaging_if_; 29 const PPB_Messaging_1_2* ppb_messaging_if_;
30 pp::SimpleThread handler_thread_; 30 pp::SimpleThread handler_thread_;
31 }; 31 };
32 32
33 #endif // PPAPI_TESTS_TEST_MESSAGE_HANDLER_H_ 33 #endif // PPAPI_TESTS_TEST_MESSAGE_HANDLER_H_
34 34
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_instance_proxy.cc ('k') | ppapi/tests/test_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698