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 <math.h> | 5 #include <math.h> |
6 #include <cstdlib> | 6 #include <cstdlib> |
7 | 7 |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/json/json_reader.h" | 10 #include "base/json/json_reader.h" |
11 #include "base/json/json_writer.h" | 11 #include "base/json/json_writer.h" |
12 #include "base/location.h" | 12 #include "base/location.h" |
13 #include "base/memory/ref_counted_memory.h" | 13 #include "base/memory/ref_counted_memory.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/memory/singleton.h" | 15 #include "base/memory/singleton.h" |
16 #include "base/process/process_handle.h" | 16 #include "base/process/process_handle.h" |
17 #include "base/single_thread_task_runner.h" | 17 #include "base/single_thread_task_runner.h" |
18 #include "base/strings/pattern.h" | 18 #include "base/strings/pattern.h" |
19 #include "base/strings/stringprintf.h" | 19 #include "base/strings/stringprintf.h" |
20 #include "base/synchronization/waitable_event.h" | 20 #include "base/synchronization/waitable_event.h" |
21 #include "base/threading/platform_thread.h" | 21 #include "base/threading/platform_thread.h" |
22 #include "base/threading/thread.h" | 22 #include "base/threading/thread.h" |
23 #include "base/time/time.h" | 23 #include "base/time/time.h" |
24 #include "base/trace_event/trace_buffer.h" | 24 #include "base/trace_event/trace_buffer.h" |
25 #include "base/trace_event/trace_event.h" | 25 #include "base/trace_event/trace_event.h" |
26 #include "base/trace_event/trace_event_synthetic_delay.h" | 26 #include "base/trace_event/trace_event_synthetic_delay.h" |
27 #include "base/values.h" | 27 #include "base/values.h" |
28 #include "testing/gmock/include/gmock/gmock.h" | 28 #include "testing/gtest/googlemock/include/gmock/gmock.h" |
29 #include "testing/gtest/include/gtest/gtest.h" | 29 #include "testing/gtest/googletest/include/gtest/gtest.h" |
30 | 30 |
31 namespace base { | 31 namespace base { |
32 namespace trace_event { | 32 namespace trace_event { |
33 | 33 |
34 namespace { | 34 namespace { |
35 | 35 |
36 enum CompareOp { | 36 enum CompareOp { |
37 IS_EQUAL, | 37 IS_EQUAL, |
38 IS_NOT_EQUAL, | 38 IS_NOT_EQUAL, |
39 }; | 39 }; |
(...skipping 2953 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2993 } | 2993 } |
2994 | 2994 |
2995 TEST_F(TraceEventTestFixture, SyntheticDelayConfigurationToString) { | 2995 TEST_F(TraceEventTestFixture, SyntheticDelayConfigurationToString) { |
2996 const char filter[] = "DELAY(test.Delay;16;oneshot)"; | 2996 const char filter[] = "DELAY(test.Delay;16;oneshot)"; |
2997 TraceConfig config(filter, ""); | 2997 TraceConfig config(filter, ""); |
2998 EXPECT_EQ(filter, config.ToCategoryFilterString()); | 2998 EXPECT_EQ(filter, config.ToCategoryFilterString()); |
2999 } | 2999 } |
3000 | 3000 |
3001 } // namespace trace_event | 3001 } // namespace trace_event |
3002 } // namespace base | 3002 } // namespace base |
OLD | NEW |