| 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 <stddef.h> |
| 6 |
| 7 #include "base/macros.h" |
| 5 #include "base/trace_event/memory_dump_manager.h" | 8 #include "base/trace_event/memory_dump_manager.h" |
| 6 #include "base/trace_event/trace_config.h" | 9 #include "base/trace_event/trace_config.h" |
| 7 #include "base/trace_event/trace_config_memory_test_util.h" | 10 #include "base/trace_event/trace_config_memory_test_util.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 9 | 12 |
| 10 namespace base { | 13 namespace base { |
| 11 namespace trace_event { | 14 namespace trace_event { |
| 12 | 15 |
| 13 namespace { | 16 namespace { |
| 14 | 17 |
| (...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 | 525 |
| 523 TEST(TraceConfigTest, LegacyStringToMemoryDumpConfig) { | 526 TEST(TraceConfigTest, LegacyStringToMemoryDumpConfig) { |
| 524 TraceConfig tc(MemoryDumpManager::kTraceCategory, ""); | 527 TraceConfig tc(MemoryDumpManager::kTraceCategory, ""); |
| 525 EXPECT_TRUE(tc.IsCategoryGroupEnabled(MemoryDumpManager::kTraceCategory)); | 528 EXPECT_TRUE(tc.IsCategoryGroupEnabled(MemoryDumpManager::kTraceCategory)); |
| 526 EXPECT_NE(std::string::npos, tc.ToString().find("memory_dump_config")); | 529 EXPECT_NE(std::string::npos, tc.ToString().find("memory_dump_config")); |
| 527 EXPECT_EQ(2u, tc.memory_dump_config_.size()); | 530 EXPECT_EQ(2u, tc.memory_dump_config_.size()); |
| 528 } | 531 } |
| 529 | 532 |
| 530 } // namespace trace_event | 533 } // namespace trace_event |
| 531 } // namespace base | 534 } // namespace base |
| OLD | NEW |