Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Side by Side Diff: ppapi/tests/test_utils.h

Issue 6432001: Implement proxy for FlashMenu and Run/QuitMessageLoop (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Handle NULL menus more gracefully Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/tests/test_url_loader.cc ('k') | ppapi/tests/test_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 PPAPI_TESTS_TEST_UTILS_H_ 5 #ifndef PPAPI_TESTS_TEST_UTILS_H_
6 #define PPAPI_TESTS_TEST_UTILS_H_ 6 #define PPAPI_TESTS_TEST_UTILS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ppapi/c/dev/ppb_testing_dev.h" 10 #include "ppapi/c/dev/ppb_testing_dev.h"
11 #include "ppapi/c/pp_instance.h"
11 #include "ppapi/c/pp_stdint.h" 12 #include "ppapi/c/pp_stdint.h"
12 #include "ppapi/cpp/completion_callback.h" 13 #include "ppapi/cpp/completion_callback.h"
13 14
14 const PPB_Testing_Dev* GetTestingInterface(); 15 const PPB_Testing_Dev* GetTestingInterface();
15 std::string ReportError(const char* method, int32_t error); 16 std::string ReportError(const char* method, int32_t error);
16 17
17 class TestCompletionCallback { 18 class TestCompletionCallback {
18 public: 19 public:
19 TestCompletionCallback(); 20 TestCompletionCallback(PP_Instance instance);
20 21
21 int32_t WaitForResult(); 22 int32_t WaitForResult();
22 23
23 operator pp::CompletionCallback() const; 24 operator pp::CompletionCallback() const;
24 25
25 unsigned run_count() const { return run_count_; } 26 unsigned run_count() const { return run_count_; }
26 void reset_run_count() { run_count_ = 0; } 27 void reset_run_count() { run_count_ = 0; }
27 28
28 private: 29 private:
29 static void Handler(void* user_data, int32_t result); 30 static void Handler(void* user_data, int32_t result);
30 31
31 int32_t result_; 32 int32_t result_;
32 bool post_quit_task_; 33 bool post_quit_task_;
33 unsigned run_count_; 34 unsigned run_count_;
35 PP_Instance instance_;
34 }; 36 };
35 37
36 #endif // PPAPI_TESTS_TEST_UTILS_H_ 38 #endif // PPAPI_TESTS_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « ppapi/tests/test_url_loader.cc ('k') | ppapi/tests/test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698