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 <memory> | 5 #include <memory> |
6 #include <string> | 6 #include <string> |
7 | 7 |
8 #include "base/json/json_reader.h" | 8 #include "base/json/json_reader.h" |
9 #include "base/trace_event/heap_profiler_type_name_deduplicator.h" | 9 #include "base/trace_event/heap_profiler_type_name_deduplicator.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
12 | 12 |
| 13 #if 0 |
| 14 |
13 namespace base { | 15 namespace base { |
14 namespace trace_event { | 16 namespace trace_event { |
15 | 17 |
16 namespace { | 18 namespace { |
17 | 19 |
18 // Define all strings once, because the deduplicator requires pointer equality, | 20 // Define all strings once, because the deduplicator requires pointer equality, |
19 // and string interning is unreliable. | 21 // and string interning is unreliable. |
20 const char kInt[] = "int"; | 22 const char kInt[] = "int"; |
21 const char kBool[] = "bool"; | 23 const char kBool[] = "bool"; |
22 const char kString[] = "string"; | 24 const char kString[] = "string"; |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 TestInsertTypeAndReadback(kNeedsEscape, kNeedsEscape); | 89 TestInsertTypeAndReadback(kNeedsEscape, kNeedsEscape); |
88 } | 90 } |
89 | 91 |
90 TEST(TypeNameDeduplicatorTest, TestExtractFileName) { | 92 TEST(TypeNameDeduplicatorTest, TestExtractFileName) { |
91 // The exported value for passed file name should be the folders in the path. | 93 // The exported value for passed file name should be the folders in the path. |
92 TestInsertTypeAndReadback(kTaskFileName, kTaskPath); | 94 TestInsertTypeAndReadback(kTaskFileName, kTaskPath); |
93 } | 95 } |
94 | 96 |
95 } // namespace trace_event | 97 } // namespace trace_event |
96 } // namespace base | 98 } // namespace base |
| 99 |
| 100 #endif |
OLD | NEW |