| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/trace_event/memory_dump_manager.h" | 5 #include "base/trace_event/memory_dump_manager.h" |
| 6 #include "base/trace_event/trace_config.h" | 6 #include "base/trace_event/trace_config.h" |
| 7 #include "base/trace_event/trace_config_memory_test_util.h" | 7 #include "base/trace_event/trace_config_memory_test_util.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/googletest/include/gtest/gtest.h" |
| 9 | 9 |
| 10 namespace base { | 10 namespace base { |
| 11 namespace trace_event { | 11 namespace trace_event { |
| 12 | 12 |
| 13 namespace { | 13 namespace { |
| 14 | 14 |
| 15 const char kDefaultTraceConfigString[] = | 15 const char kDefaultTraceConfigString[] = |
| 16 "{" | 16 "{" |
| 17 "\"enable_argument_filter\":false," | 17 "\"enable_argument_filter\":false," |
| 18 "\"enable_sampling\":false," | 18 "\"enable_sampling\":false," |
| (...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 | 516 |
| 517 TEST(TraceConfigTest, LegacyStringToMemoryDumpConfig) { | 517 TEST(TraceConfigTest, LegacyStringToMemoryDumpConfig) { |
| 518 TraceConfig tc(MemoryDumpManager::kTraceCategory, ""); | 518 TraceConfig tc(MemoryDumpManager::kTraceCategory, ""); |
| 519 EXPECT_TRUE(tc.IsCategoryGroupEnabled(MemoryDumpManager::kTraceCategory)); | 519 EXPECT_TRUE(tc.IsCategoryGroupEnabled(MemoryDumpManager::kTraceCategory)); |
| 520 EXPECT_NE(std::string::npos, tc.ToString().find("memory_dump_config")); | 520 EXPECT_NE(std::string::npos, tc.ToString().find("memory_dump_config")); |
| 521 EXPECT_EQ(2u, tc.memory_dump_config_.size()); | 521 EXPECT_EQ(2u, tc.memory_dump_config_.size()); |
| 522 } | 522 } |
| 523 | 523 |
| 524 } // namespace trace_event | 524 } // namespace trace_event |
| 525 } // namespace base | 525 } // namespace base |
| OLD | NEW |