| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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_nacl_irt_stack_alignment.h" | 5 #include "ppapi/tests/test_nacl_irt_stack_alignment.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "ppapi/c/pp_var.h" | 9 #include "ppapi/c/pp_var.h" |
| 8 #include "ppapi/c/ppb_var.h" | 10 #include "ppapi/c/ppb_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/cpp/var.h" | 13 #include "ppapi/cpp/var.h" |
| 12 #include "ppapi/tests/testing_instance.h" | 14 #include "ppapi/tests/testing_instance.h" |
| 13 | 15 |
| 14 // This whole test is really only meant for x86-32 NaCl (not PNaCl). | 16 // This whole test is really only meant for x86-32 NaCl (not PNaCl). |
| 15 // | 17 // |
| 16 // This is a regression test for the IRT code being sensitive to stack | 18 // This is a regression test for the IRT code being sensitive to stack |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 ASSERT_EQ(sizeof(var), static_cast<size_t>(16)); | 78 ASSERT_EQ(sizeof(var), static_cast<size_t>(16)); |
| 77 | 79 |
| 78 // This will crash if the test fails. | 80 // This will crash if the test fails. |
| 79 MisalignedCall(var_interface_->AddRef, &var); | 81 MisalignedCall(var_interface_->AddRef, &var); |
| 80 MisalignedCall(var_interface_->Release, &var); | 82 MisalignedCall(var_interface_->Release, &var); |
| 81 | 83 |
| 82 PASS(); | 84 PASS(); |
| 83 } | 85 } |
| 84 | 86 |
| 85 #endif // defined(__i386__) | 87 #endif // defined(__i386__) |
| OLD | NEW |