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 NATIVE_CLIENT_TESTS_PPAPI_TEST_LIB_TESTABLE_CALLBACK_H | 5 #ifndef CHROME_TEST_DATA_NACL_PPAPI_TEST_LIB_TESTABLE_CALLBACK_H_ |
6 #define NATIVE_CLIENT_TESTS_PPAPI_TEST_LIB_TESTABLE_CALLBACK_H | 6 #define CHROME_TEST_DATA_NACL_PPAPI_TEST_LIB_TESTABLE_CALLBACK_H_ |
7 | 7 |
8 #include "ppapi/c/pp_completion_callback.h" | 8 #include "ppapi/c/pp_completion_callback.h" |
9 #include "ppapi/c/pp_instance.h" | 9 #include "ppapi/c/pp_instance.h" |
10 #include "ppapi/c/pp_stdint.h" | 10 #include "ppapi/c/pp_stdint.h" |
11 | 11 |
12 // NOTE: if you use you TestableCallback you will need to enable | 12 // NOTE: if you use you TestableCallback you will need to enable |
13 // testing interfaces in PPAPIBrowserTester(), e.g. | 13 // testing interfaces in PPAPIBrowserTester(), e.g. |
14 // "--enable-pepper-testing", c.f. | 14 // "--enable-pepper-testing", c.f. |
15 // tests/ppapi_browser/ppb_graphics2d/nacl.scons | 15 // tests/ppapi_browser/ppb_graphics2d/nacl.scons |
16 // | 16 // |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 static void Handler(void* user_data, int32_t result); | 55 static void Handler(void* user_data, int32_t result); |
56 | 56 |
57 bool have_result_; // is a result available? | 57 bool have_result_; // is a result available? |
58 int32_t result_; // value of the result | 58 int32_t result_; // value of the result |
59 bool force_async_; // force callback to be always called | 59 bool force_async_; // force callback to be always called |
60 bool post_quit_task_; // has cleanup beem performed | 60 bool post_quit_task_; // has cleanup beem performed |
61 unsigned run_count_; // number of times the callback has been called | 61 unsigned run_count_; // number of times the callback has been called |
62 PP_Instance instance_; | 62 PP_Instance instance_; |
63 }; | 63 }; |
64 | 64 |
65 #endif // NATIVE_CLIENT_TESTS_PPAPI_TEST_LIB_TESTABLE_CALLBACK_H | 65 #endif // CHROME_TEST_DATA_NACL_PPAPI_TEST_LIB_TESTABLE_CALLBACK_H_ |
OLD | NEW |