diff options
Diffstat (limited to 'ppapi/tests/test_utils.h')
-rw-r--r-- | ppapi/tests/test_utils.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ppapi/tests/test_utils.h b/ppapi/tests/test_utils.h index 7af515d..192b239 100644 --- a/ppapi/tests/test_utils.h +++ b/ppapi/tests/test_utils.h @@ -22,11 +22,15 @@ class TestCompletionCallback { operator pp::CompletionCallback() const; + unsigned run_count() const { return run_count_; } + void reset_run_count() { run_count_ = 0; } + private: static void Handler(void* user_data, int32_t result); int32_t result_; bool post_quit_task_; + unsigned run_count_; }; #endif // PPAPI_TESTS_TEST_UTILS_H_ |