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

Side by Side Diff: tests/fake_browser_ppapi/fake_instance.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_file_ref.cc ('k') | tests/fake_browser_ppapi/fake_object.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 <stdio.h> 7 #include <stdio.h>
8 #include "native_client/tests/fake_browser_ppapi/fake_instance.h" 8 #include "native_client/tests/fake_browser_ppapi/fake_instance.h"
9 9
10 #include "native_client/src/include/nacl_macros.h" 10 #include "native_client/src/include/nacl_macros.h"
11 #include "native_client/src/include/portability.h" 11 #include "native_client/src/include/portability.h"
12 #include "native_client/src/shared/ppapi_proxy/utility.h"
13 #include "native_client/tests/fake_browser_ppapi/fake_window.h" 12 #include "native_client/tests/fake_browser_ppapi/fake_window.h"
13 #include "native_client/tests/fake_browser_ppapi/utility.h"
14 #include "ppapi/c/ppb_instance.h" 14 #include "ppapi/c/ppb_instance.h"
15 15
16 using ppapi_proxy::DebugPrintf; 16 using fake_browser_ppapi::DebugPrintf;
17 17
18 namespace fake_browser_ppapi { 18 namespace fake_browser_ppapi {
19 19
20 PP_Var Instance::GetWindowObject() { 20 PP_Var Instance::GetWindowObject() {
21 DebugPrintf("Instance::GetWindowObject: instance=%p\n", 21 DebugPrintf("Instance::GetWindowObject: instance=%p\n",
22 reinterpret_cast<void*>(this)); 22 reinterpret_cast<void*>(this));
23 return window_->FakeWindowObject(); 23 return window_->FakeWindowObject();
24 } 24 }
25 25
26 PP_Var Instance::GetOwnerElementObject() { 26 PP_Var Instance::GetOwnerElementObject() {
(...skipping 22 matching lines...) Expand all
49 PP_Var* exception) { 49 PP_Var* exception) {
50 DebugPrintf("Instance::ExecuteScript: instance=%p\n", 50 DebugPrintf("Instance::ExecuteScript: instance=%p\n",
51 reinterpret_cast<void*>(this)); 51 reinterpret_cast<void*>(this));
52 NACL_UNIMPLEMENTED(); 52 NACL_UNIMPLEMENTED();
53 UNREFERENCED_PARAMETER(script); 53 UNREFERENCED_PARAMETER(script);
54 UNREFERENCED_PARAMETER(exception); 54 UNREFERENCED_PARAMETER(exception);
55 return PP_MakeUndefined(); 55 return PP_MakeUndefined();
56 } 56 }
57 57
58 } // namespace fake_browser_ppapi 58 } // namespace fake_browser_ppapi
OLDNEW
« no previous file with comments | « tests/fake_browser_ppapi/fake_file_ref.cc ('k') | tests/fake_browser_ppapi/fake_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698