Chromium Code Reviews| Index: ppapi/tests/testing_instance.h |
| =================================================================== |
| --- ppapi/tests/testing_instance.h (revision 77426) |
| +++ ppapi/tests/testing_instance.h (working copy) |
| @@ -1,9 +1,9 @@ |
| -// Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| -#ifndef PPAPI_TEST_TESTING_INSTANCE_H_ |
| -#define PPAPI_TEST_TESTING_INSTANCE_H_ |
| +#ifndef PPAPI_TESTS_TESTING_INSTANCE_H_ |
| +#define PPAPI_TESTS_TESTING_INSTANCE_H_ |
| #include <string> |
| @@ -14,7 +14,7 @@ |
| class TestingInstance : public pp::Instance { |
| public: |
| - TestingInstance(PP_Instance instance); |
| + explicit TestingInstance(PP_Instance instance); |
| // pp::Instance override. |
| virtual bool Init(uint32_t argc, const char* argn[], const char* argv[]); |
| @@ -41,6 +41,12 @@ |
| // Appends an error message to the log. |
| void AppendError(const std::string& message); |
| + // Passes the message_data through to the HandleMessage method on the |
| + // TestClass object that's associated with this instance. |
| + virtual void HandleMessage(const pp::Var& message_data); |
| + |
| + bool nacl_mode() { return nacl_mode_; } |
|
brettw
2011/03/16 21:34:11
This should be const.
dmichael(do not use this one)
2011/03/21 21:43:35
Nice catch. Turns out I didn't end up using it, s
|
| + |
| private: |
| void ExecuteTests(int32_t unused); |
| @@ -75,4 +81,5 @@ |
| bool nacl_mode_; |
| }; |
| -#endif // PPAPI_TEST_TESTING_INSTANCE_H_ |
| +#endif // PPAPI_TESTS_TESTING_INSTANCE_H_ |
| + |