test_nacl_irt_stack_alignment.h 854 B

123456789101112131415161718192021222324252627282930
  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
  3. // found in the LICENSE file.
  4. #ifndef PPAPI_TESTS_TEST_NACL_IRT_STACK_ALIGNMENT_H_
  5. #define PPAPI_TESTS_TEST_NACL_IRT_STACK_ALIGNMENT_H_
  6. #include <string>
  7. #include "ppapi/c/ppb_var.h"
  8. #include "ppapi/cpp/var.h"
  9. #include "ppapi/tests/test_case.h"
  10. class TestNaClIRTStackAlignment : public TestCase {
  11. public:
  12. explicit TestNaClIRTStackAlignment(TestingInstance* instance)
  13. : TestCase(instance) {}
  14. private:
  15. // TestCase implementation.
  16. virtual bool Init();
  17. virtual void RunTests(const std::string& filter);
  18. std::string TestMisalignedCallVarAddRef();
  19. // Used by the tests that access the C API directly.
  20. const PPB_Var* var_interface_;
  21. };
  22. #endif // PPAPI_TESTS_TEST_NACL_IRT_STACK_ALIGNMENT_H_