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

Side by Side Diff: tests/fake_browser_ppapi/fake_url_loader.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_loader.h" 7 #include "native_client/tests/fake_browser_ppapi/fake_url_loader.h"
8 8
9 #include <string> 9 #include <string>
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/utility.h"
14 13
15 #include "native_client/tests/fake_browser_ppapi/fake_file_ref.h" 14 #include "native_client/tests/fake_browser_ppapi/fake_file_ref.h"
16 #include "native_client/tests/fake_browser_ppapi/fake_resource.h" 15 #include "native_client/tests/fake_browser_ppapi/fake_resource.h"
17 #include "native_client/tests/fake_browser_ppapi/fake_url_request_info.h" 16 #include "native_client/tests/fake_browser_ppapi/fake_url_request_info.h"
18 #include "native_client/tests/fake_browser_ppapi/fake_url_response_info.h" 17 #include "native_client/tests/fake_browser_ppapi/fake_url_response_info.h"
18 #include "native_client/tests/fake_browser_ppapi/utility.h"
19 19
20 #include "ppapi/c/pp_errors.h" 20 #include "ppapi/c/pp_errors.h"
21 #include "ppapi/c/pp_completion_callback.h" 21 #include "ppapi/c/pp_completion_callback.h"
22 #include "ppapi/c/pp_resource.h" 22 #include "ppapi/c/pp_resource.h"
23 23
24 using ppapi_proxy::DebugPrintf; 24 using fake_browser_ppapi::DebugPrintf;
25 25
26 namespace fake_browser_ppapi { 26 namespace fake_browser_ppapi {
27 27
28 std::string g_nacl_ppapi_url_path = NACL_NO_URL; 28 std::string g_nacl_ppapi_url_path = NACL_NO_URL;
29 std::string g_nacl_ppapi_local_path = NACL_NO_FILE_PATH; 29 std::string g_nacl_ppapi_local_path = NACL_NO_FILE_PATH;
30 30
31 namespace { 31 namespace {
32 32
33 PP_Resource Create(PP_Instance instance_id) { 33 PP_Resource Create(PP_Instance instance_id) {
34 DebugPrintf("URLLoader::Create: instance_id=%"NACL_PRId64"\n", instance_id); 34 DebugPrintf("URLLoader::Create: instance_id=%"NACL_PRId64"\n", instance_id);
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 GetDownloadProgress, 187 GetDownloadProgress,
188 GetResponseInfo, 188 GetResponseInfo,
189 ReadResponseBody, 189 ReadResponseBody,
190 FinishStreamingToFile, 190 FinishStreamingToFile,
191 Close 191 Close
192 }; 192 };
193 return &url_loader_interface; 193 return &url_loader_interface;
194 } 194 }
195 195
196 } // namespace fake_browser_ppapi 196 } // namespace fake_browser_ppapi
OLDNEW
« no previous file with comments | « tests/fake_browser_ppapi/fake_object.cc ('k') | tests/fake_browser_ppapi/fake_url_request_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698