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

Side by Side Diff: base/debug/trace_event_unittest.cc

Issue 12096115: Update tracing framework to optionally use a ringbuffer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/debug/trace_event_unittest.h" 5 #include "base/debug/trace_event_unittest.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/json/json_reader.h" 10 #include "base/json/json_reader.h"
(...skipping 1391 matching lines...) Expand 10 before | Expand all | Expand 10 after
1402 EXPECT_FALSE(*trace_log->GetCategoryEnabled("foo")); 1402 EXPECT_FALSE(*trace_log->GetCategoryEnabled("foo"));
1403 EXPECT_TRUE(*trace_log->GetCategoryEnabled("baz")); 1403 EXPECT_TRUE(*trace_log->GetCategoryEnabled("baz"));
1404 trace_log->SetEnabled(std::string("moo")); 1404 trace_log->SetEnabled(std::string("moo"));
1405 EXPECT_TRUE(*trace_log->GetCategoryEnabled("baz")); 1405 EXPECT_TRUE(*trace_log->GetCategoryEnabled("baz"));
1406 EXPECT_TRUE(*trace_log->GetCategoryEnabled("moo")); 1406 EXPECT_TRUE(*trace_log->GetCategoryEnabled("moo"));
1407 EXPECT_TRUE(*trace_log->GetCategoryEnabled("foo")); 1407 EXPECT_TRUE(*trace_log->GetCategoryEnabled("foo"));
1408 trace_log->SetDisabled(); 1408 trace_log->SetDisabled();
1409 trace_log->SetDisabled(); 1409 trace_log->SetDisabled();
1410 } 1410 }
1411 1411
1412 // TODO(dsinclair): Continuous Tracing unit test.
1413
1412 } // namespace debug 1414 } // namespace debug
1413 } // namespace base 1415 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698