| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "ppapi/tests/test_var_resource.h" | 5 #include "ppapi/tests/test_var_resource.h" |
| 6 | 6 |
| 7 #include <stdint.h> |
| 8 |
| 7 #include "ppapi/c/pp_resource.h" | 9 #include "ppapi/c/pp_resource.h" |
| 8 #include "ppapi/c/pp_var.h" | 10 #include "ppapi/c/pp_var.h" |
| 9 #include "ppapi/cpp/instance.h" | 11 #include "ppapi/cpp/instance.h" |
| 10 #include "ppapi/cpp/module.h" | 12 #include "ppapi/cpp/module.h" |
| 11 #include "ppapi/tests/testing_instance.h" | 13 #include "ppapi/tests/testing_instance.h" |
| 12 | 14 |
| 13 REGISTER_TEST_CASE(VarResource); | 15 REGISTER_TEST_CASE(VarResource); |
| 14 | 16 |
| 15 bool TestVarResource::Init() { | 17 bool TestVarResource::Init() { |
| 16 core_interface_ = static_cast<const PPB_Core*>( | 18 core_interface_ = static_cast<const PPB_Core*>( |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 ASSERT_EQ(0, result); | 124 ASSERT_EQ(0, result); |
| 123 | 125 |
| 124 result = var_interface_->VarToResource(PP_MakeInt32(42)); | 126 result = var_interface_->VarToResource(PP_MakeInt32(42)); |
| 125 ASSERT_EQ(0, result); | 127 ASSERT_EQ(0, result); |
| 126 | 128 |
| 127 result = var_interface_->VarToResource(PP_MakeDouble(1.0)); | 129 result = var_interface_->VarToResource(PP_MakeDouble(1.0)); |
| 128 ASSERT_EQ(0, result); | 130 ASSERT_EQ(0, result); |
| 129 | 131 |
| 130 PASS(); | 132 PASS(); |
| 131 } | 133 } |
| OLD | NEW |