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

Unified Diff: chrome/browser/nacl_host/test/gdb_debug_stub_browsertest.cc

Issue 11875038: We are increasing verbosity level for debug stub log messages. Now in order to see them in the log… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 months 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/nacl_host/test/gdb_debug_stub_browsertest.cc
===================================================================
--- chrome/browser/nacl_host/test/gdb_debug_stub_browsertest.cc (revision 176797)
+++ chrome/browser/nacl_host/test/gdb_debug_stub_browsertest.cc (working copy)
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "base/command_line.h"
+#include "base/environment.h"
#include "base/path_service.h"
#include "base/process_util.h"
#include "base/string_number_conversions.h"
@@ -48,10 +49,13 @@
void NaClGdbDebugStubTest::RunDebugStubTest(const std::string& nacl_module,
const std::string& test_name) {
base::ProcessHandle test_script;
+ scoped_ptr<base::Environment> env(base::Environment::Create());
NaClBrowser::GetInstance()->SetGdbDebugStubPortListener(
base::Bind(&NaClGdbDebugStubTest::StartTestScript,
base::Unretained(this), &test_script, test_name));
+ env->SetVar("NACLVERBOSITY", "1");
Mark Seaborn 2013/01/15 17:47:55 Please add a comment to say that this turns on deb
halyavin 2013/01/16 08:34:19 Done
RunTestViaHTTP(nacl_module);
+ env->UnSetVar("NACLVERBOSITY");
NaClBrowser::GetInstance()->ClearGdbDebugStubPortListener();
int exit_code;
base::WaitForExitCode(test_script, &exit_code);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698