skia/ext: Early out from analysis when we have more than 1 draw op.
[chromium-blink-merge.git] / ppapi / tests / test_message_handler.h
blob560a1ff9d167665b4298666d316f8cf6ba75f79b
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
3 // found in the LICENSE file.
5 #ifndef PPAPI_TESTS_TEST_MESSAGE_HANDLER_H_
6 #define PPAPI_TESTS_TEST_MESSAGE_HANDLER_H_
8 #include <string>
9 #include <vector>
11 #include "ppapi/c/ppb_messaging.h"
12 #include "ppapi/tests/test_case.h"
13 #include "ppapi/utility/threading/simple_thread.h"
15 class TestMessageHandler : public TestCase {
16 public:
17 explicit TestMessageHandler(TestingInstance* instance);
18 virtual ~TestMessageHandler();
20 private:
21 // TestCase implementation.
22 virtual bool Init();
23 virtual void RunTests(const std::string& filter);
24 virtual void HandleMessage(const pp::Var& message_data);
26 std::string TestRegisterErrorConditions();
27 std::string TestPostMessageAndAwaitResponse();
29 const PPB_Messaging_1_1* ppb_messaging_if_;
30 pp::SimpleThread handler_thread_;
33 #endif // PPAPI_TESTS_TEST_MESSAGE_HANDLER_H_