| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_TEST_TEST_VAR_DEPRECATED_H_ | 5 #ifndef PPAPI_TEST_TEST_VAR_DEPRECATED_H_ |
| 6 #define PPAPI_TEST_TEST_VAR_DEPRECATED_H_ | 6 #define PPAPI_TEST_TEST_VAR_DEPRECATED_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ppapi/c/dev/ppb_var_deprecated.h" |
| 10 #include "ppapi/cpp/private/var_private.h" | 11 #include "ppapi/cpp/private/var_private.h" |
| 11 #include "ppapi/tests/test_case.h" | 12 #include "ppapi/tests/test_case.h" |
| 12 | 13 |
| 13 struct PPB_Var_Deprecated; | |
| 14 | |
| 15 class TestVarDeprecated : public TestCase { | 14 class TestVarDeprecated : public TestCase { |
| 16 public: | 15 public: |
| 17 explicit TestVarDeprecated(TestingInstance* instance) : TestCase(instance) {} | 16 explicit TestVarDeprecated(TestingInstance* instance) : TestCase(instance) {} |
| 18 | 17 |
| 19 // TestCase implementation. | 18 // TestCase implementation. |
| 20 virtual bool Init(); | 19 virtual bool Init(); |
| 21 virtual void RunTests(const std::string& filter); | 20 virtual void RunTests(const std::string& filter); |
| 22 | 21 |
| 23 void set_var_from_page(const pp::VarPrivate& v) { var_from_page_ = v; } | 22 void set_var_from_page(const pp::VarPrivate& v) { var_from_page_ = v; } |
| 24 | 23 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 38 std::string TestPassReference(); | 37 std::string TestPassReference(); |
| 39 | 38 |
| 40 // Used by the tests that access the C API directly. | 39 // Used by the tests that access the C API directly. |
| 41 const PPB_Var_Deprecated* var_interface_; | 40 const PPB_Var_Deprecated* var_interface_; |
| 42 | 41 |
| 43 // Saves the var from when a value is set on the test from the page. | 42 // Saves the var from when a value is set on the test from the page. |
| 44 pp::VarPrivate var_from_page_; | 43 pp::VarPrivate var_from_page_; |
| 45 }; | 44 }; |
| 46 | 45 |
| 47 #endif // PPAPI_TEST_TEST_VAR_DEPRECATED_H_ | 46 #endif // PPAPI_TEST_TEST_VAR_DEPRECATED_H_ |
| 48 | |
| OLD | NEW |