| Index: ppapi/tests/testing_instance.h
|
| ===================================================================
|
| --- ppapi/tests/testing_instance.h (revision 77328)
|
| +++ 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_; }
|
| +
|
| 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_
|
| +
|
|
|