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

Side by Side Diff: tests/fake_browser_ppapi/fake_object.cc

Issue 5631003: ppapi_proxy: Make DebugPrintf more usable.... (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 10 years 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 | « tests/fake_browser_ppapi/fake_instance.cc ('k') | tests/fake_browser_ppapi/fake_url_loader.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 /* 1 /*
2 * Copyright 2010 The Native Client Authors. All rights reserved. 2 * Copyright 2010 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can 3 * Use of this source code is governed by a BSD-style license that can
4 * be found in the LICENSE file. 4 * be found in the LICENSE file.
5 */ 5 */
6 6
7 #include <string.h> 7 #include <string.h>
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "native_client/tests/fake_browser_ppapi/fake_object.h" 11 #include "native_client/tests/fake_browser_ppapi/fake_object.h"
12 12
13 #include "native_client/src/include/nacl_macros.h" 13 #include "native_client/src/include/nacl_macros.h"
14 #include "native_client/src/include/portability.h" 14 #include "native_client/src/include/portability.h"
15 #include "native_client/src/shared/ppapi_proxy/utility.h"
16 #include "native_client/src/shared/ppapi_proxy/plugin_var.h" 15 #include "native_client/src/shared/ppapi_proxy/plugin_var.h"
16 #include "native_client/tests/fake_browser_ppapi/utility.h"
17 #include "ppapi/c/dev/ppb_var_deprecated.h" 17 #include "ppapi/c/dev/ppb_var_deprecated.h"
18 #include "ppapi/c/pp_var.h" 18 #include "ppapi/c/pp_var.h"
19 19
20 using ppapi_proxy::DebugPrintf; 20 using fake_browser_ppapi::DebugPrintf;
21 using ppapi_proxy::PluginVar; 21 using ppapi_proxy::PluginVar;
22 using fake_browser_ppapi::Object; 22 using fake_browser_ppapi::Object;
23 23
24 namespace fake_browser_ppapi { 24 namespace fake_browser_ppapi {
25 25
26 const PPB_Var_Deprecated* ppb_var = NULL; 26 const PPB_Var_Deprecated* ppb_var = NULL;
27 27
28 bool Object::HasProperty(PP_Var name, 28 bool Object::HasProperty(PP_Var name,
29 PP_Var* exception) { 29 PP_Var* exception) {
30 UNREFERENCED_PARAMETER(exception); 30 UNREFERENCED_PARAMETER(exception);
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 } 222 }
223 } 223 }
224 Object* obj = new Object(module, properties, methods); 224 Object* obj = new Object(module, properties, methods);
225 if (obj == NULL) { 225 if (obj == NULL) {
226 return PP_MakeUndefined(); 226 return PP_MakeUndefined();
227 } 227 }
228 return ppb_var->CreateObject(module, &ppapi_proxy::Object::object_class, obj); 228 return ppb_var->CreateObject(module, &ppapi_proxy::Object::object_class, obj);
229 } 229 }
230 230
231 } // namespace fake_browser_ppapi 231 } // namespace fake_browser_ppapi
OLDNEW
« no previous file with comments | « tests/fake_browser_ppapi/fake_instance.cc ('k') | tests/fake_browser_ppapi/fake_url_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698