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

Unified Diff: base/debug/trace_event_unittest.cc

Issue 9155024: Allow tracing in third_party libraries (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile Created 8 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
Index: base/debug/trace_event_unittest.cc
diff --git a/base/debug/trace_event_unittest.cc b/base/debug/trace_event_unittest.cc
index cb77feecc65b5e3cde1bf16b3964036a228e8fb3..0677f321a55b8c0fce94aedb3ca66e9619f93bdd 100644
--- a/base/debug/trace_event_unittest.cc
+++ b/base/debug/trace_event_unittest.cc
@@ -99,6 +99,10 @@ void TraceEventTestFixture::OnTraceDataCollected(
scoped_ptr<Value> root;
root.reset(base::JSONReader::Read(json_output_.json_output, false));
+ if (!root.get()) {
+ LOG(ERROR) << json_output_.json_output;
+ }
+
ListValue* root_list = NULL;
ASSERT_TRUE(root.get());
ASSERT_TRUE(root->GetAsList(&root_list));

Powered by Google App Engine
This is Rietveld 408576698