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

Side by Side Diff: ppapi/c/dev/ppb_testing_dev.h

Issue 7648033: Add means for running some tests only o-o-p, add messaging o-o-p test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updated a copyright header Created 9 years, 3 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 | « no previous file | ppapi/ppapi_tests.gypi » ('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) 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 PPAPI_C_DEV_PPB_TESTING_DEV_H_ 5 #ifndef PPAPI_C_DEV_PPB_TESTING_DEV_H_
6 #define PPAPI_C_DEV_PPB_TESTING_DEV_H_ 6 #define PPAPI_C_DEV_PPB_TESTING_DEV_H_
7 7
8 #include "ppapi/c/pp_bool.h" 8 #include "ppapi/c/pp_bool.h"
9 #include "ppapi/c/pp_instance.h" 9 #include "ppapi/c/pp_instance.h"
10 #include "ppapi/c/pp_resource.h" 10 #include "ppapi/c/pp_resource.h"
11 #include "ppapi/c/pp_stdint.h" 11 #include "ppapi/c/pp_stdint.h"
12 12
13 struct PP_Point; 13 struct PP_Point;
14 14
15 // TODO(dmichael): Delete support for 0.6.
15 #define PPB_TESTING_DEV_INTERFACE_0_6 "PPB_Testing(Dev);0.6" 16 #define PPB_TESTING_DEV_INTERFACE_0_6 "PPB_Testing(Dev);0.6"
16 #define PPB_TESTING_DEV_INTERFACE PPB_TESTING_DEV_INTERFACE_0_6 17 #define PPB_TESTING_DEV_INTERFACE_0_7 "PPB_Testing(Dev);0.7"
18 #define PPB_TESTING_DEV_INTERFACE PPB_TESTING_DEV_INTERFACE_0_7
17 19
18 // This interface contains functions used for unit testing. Do not use in 20 // This interface contains functions used for unit testing. Do not use in
19 // production code. They are not guaranteed to be available in normal plugin 21 // production code. They are not guaranteed to be available in normal plugin
20 // environments so you should not depend on them. 22 // environments so you should not depend on them.
21 struct PPB_Testing_Dev { 23 struct PPB_Testing_Dev {
22 // Reads the bitmap data out of the backing store for the given 24 // Reads the bitmap data out of the backing store for the given
23 // DeviceContext2D and into the given image. If the data was successfully 25 // DeviceContext2D and into the given image. If the data was successfully
24 // read, it will return PP_TRUE. 26 // read, it will return PP_TRUE.
25 // 27 //
26 // This function should not generally be necessary for normal plugin 28 // This function should not generally be necessary for normal plugin
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 void (*RunMessageLoop)(PP_Instance instance); 63 void (*RunMessageLoop)(PP_Instance instance);
62 64
63 // Posts a quit message for the outermost nested message loop. Use this to 65 // Posts a quit message for the outermost nested message loop. Use this to
64 // exit and return back to the caller after you call RunMessageLoop. 66 // exit and return back to the caller after you call RunMessageLoop.
65 void (*QuitMessageLoop)(PP_Instance instance); 67 void (*QuitMessageLoop)(PP_Instance instance);
66 68
67 // Returns the number of live objects (resources + strings + objects) 69 // Returns the number of live objects (resources + strings + objects)
68 // associated with this plugin instance. Used for detecting leaks. Returns 70 // associated with this plugin instance. Used for detecting leaks. Returns
69 // (uint32_t)-1 on failure. 71 // (uint32_t)-1 on failure.
70 uint32_t (*GetLiveObjectsForInstance)(PP_Instance instance); 72 uint32_t (*GetLiveObjectsForInstance)(PP_Instance instance);
73
74 // Returns PP_TRUE if the plugin is running out-of-process, PP_FALSE
75 // otherwise.
76 PP_Bool (*IsOutOfProcess)();
71 }; 77 };
72 78
73 #endif /* PPAPI_C_DEV_PPB_TESTING_DEV_H_ */ 79 #endif /* PPAPI_C_DEV_PPB_TESTING_DEV_H_ */
74 80
OLDNEW
« no previous file with comments | « no previous file | ppapi/ppapi_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698