| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |