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

Unified Diff: tests/fake_browser_ppapi/utility.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/fake_browser_ppapi/utility.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/fake_browser_ppapi/utility.cc
===================================================================
--- tests/fake_browser_ppapi/utility.cc (revision 0)
+++ tests/fake_browser_ppapi/utility.cc (revision 0)
@@ -0,0 +1,20 @@
+// Copyright 2010 The Native Client Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can
+// be found in the LICENSE file.
+
+#include <stdarg.h>
+#include <stdlib.h>
+#include <stdio.h>
+
+namespace fake_browser_ppapi {
+
+void DebugPrintf(const char* format, ...) {
+ va_list argptr;
+ va_start(argptr, format);
+ fprintf(stdout, "fake_browser: ");
+ vfprintf(stdout, format, argptr);
+ va_end(argptr);
+ fflush(stdout);
+}
+
+} // namespace fake_browser_ppapi
« no previous file with comments | « tests/fake_browser_ppapi/utility.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698