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

Side by Side Diff: tests/fake_browser_ppapi/fake_url_response_info.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
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 "native_client/tests/fake_browser_ppapi/fake_url_response_info.h" 7 #include "native_client/tests/fake_browser_ppapi/fake_url_response_info.h"
8 8
9 #include <stdio.h> 9 #include <stdio.h>
10 10
11 #include "native_client/src/include/nacl_macros.h" 11 #include "native_client/src/include/nacl_macros.h"
12 #include "native_client/src/include/portability.h" 12 #include "native_client/src/include/portability.h"
13 #include "native_client/src/shared/ppapi_proxy/plugin_var.h" 13 #include "native_client/src/shared/ppapi_proxy/plugin_var.h"
14 #include "native_client/src/shared/ppapi_proxy/utility.h"
15 14
16 #include "native_client/tests/fake_browser_ppapi/fake_file_ref.h" 15 #include "native_client/tests/fake_browser_ppapi/fake_file_ref.h"
17 #include "native_client/tests/fake_browser_ppapi/fake_resource.h" 16 #include "native_client/tests/fake_browser_ppapi/fake_resource.h"
17 #include "native_client/tests/fake_browser_ppapi/utility.h"
18 18
19 #include "ppapi/c/pp_completion_callback.h" 19 #include "ppapi/c/pp_completion_callback.h"
20 #include "ppapi/c/pp_resource.h" 20 #include "ppapi/c/pp_resource.h"
21 21
22 using ppapi_proxy::DebugPrintf; 22 using fake_browser_ppapi::DebugPrintf;
23 using ppapi_proxy::PluginVar; 23 using ppapi_proxy::PluginVar;
24 24
25 namespace fake_browser_ppapi { 25 namespace fake_browser_ppapi {
26 26
27 namespace { 27 namespace {
28 28
29 PP_Bool IsURLResponseInfo(PP_Resource resource_id) { 29 PP_Bool IsURLResponseInfo(PP_Resource resource_id) {
30 DebugPrintf("URLRequestInfo::IsURLResponseInfo: resource_id=%"NACL_PRId64"\n", 30 DebugPrintf("URLRequestInfo::IsURLResponseInfo: resource_id=%"NACL_PRId64"\n",
31 resource_id); 31 resource_id);
32 NACL_UNIMPLEMENTED(); 32 NACL_UNIMPLEMENTED();
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 const PPB_URLResponseInfo* URLResponseInfo::GetInterface() { 72 const PPB_URLResponseInfo* URLResponseInfo::GetInterface() {
73 static const PPB_URLResponseInfo url_response_info_interface = { 73 static const PPB_URLResponseInfo url_response_info_interface = {
74 IsURLResponseInfo, 74 IsURLResponseInfo,
75 GetProperty, 75 GetProperty,
76 GetBodyAsFileRef 76 GetBodyAsFileRef
77 }; 77 };
78 return &url_response_info_interface; 78 return &url_response_info_interface;
79 } 79 }
80 80
81 } // namespace fake_browser_ppapi 81 } // namespace fake_browser_ppapi
OLDNEW
« no previous file with comments | « tests/fake_browser_ppapi/fake_url_request_info.cc ('k') | tests/fake_browser_ppapi/fake_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698