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/memory/ref_counted_memory.h" | 12 #include "base/memory/ref_counted_memory.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/memory/singleton.h" | 14 #include "base/memory/singleton.h" |
15 #include "base/process/process_handle.h" | 15 #include "base/process/process_handle.h" |
16 #include "base/strings/stringprintf.h" | 16 #include "base/strings/stringprintf.h" |
17 #include "base/synchronization/waitable_event.h" | 17 #include "base/synchronization/waitable_event.h" |
18 #include "base/threading/platform_thread.h" | 18 #include "base/threading/platform_thread.h" |
19 #include "base/threading/thread.h" | 19 #include "base/threading/thread.h" |
20 #include "base/time/time.h" | 20 #include "base/time/time.h" |
21 #include "base/trace_event/trace_event.h" | 21 #include "base/trace_event/trace_event.h" |
22 #include "base/trace_event/trace_event_synthetic_delay.h" | 22 #include "base/trace_event/trace_event_synthetic_delay.h" |
23 #include "base/values.h" | 23 #include "base/values.h" |
24 #include "testing/gmock/include/gmock/gmock.h" | 24 #include "testing/gmock/include/gmock/gmock.h" |
25 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" |
26 | 26 |
27 namespace base { | 27 namespace base { |
28 namespace debug { | 28 namespace trace_event { |
29 | 29 |
30 namespace { | 30 namespace { |
31 | 31 |
32 enum CompareOp { | 32 enum CompareOp { |
33 IS_EQUAL, | 33 IS_EQUAL, |
34 IS_NOT_EQUAL, | 34 IS_NOT_EQUAL, |
35 }; | 35 }; |
36 | 36 |
37 struct JsonKeyValue { | 37 struct JsonKeyValue { |
38 const char* key; | 38 const char* key; |
(...skipping 3033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3072 TraceOptions new_options; | 3072 TraceOptions new_options; |
3073 EXPECT_TRUE(new_options.SetFromString(original_option.ToString())); | 3073 EXPECT_TRUE(new_options.SetFromString(original_option.ToString())); |
3074 EXPECT_EQ(original_option.record_mode, new_options.record_mode); | 3074 EXPECT_EQ(original_option.record_mode, new_options.record_mode); |
3075 EXPECT_EQ(original_option.enable_sampling, new_options.enable_sampling); | 3075 EXPECT_EQ(original_option.enable_sampling, new_options.enable_sampling); |
3076 EXPECT_EQ(original_option.enable_systrace, new_options.enable_systrace); | 3076 EXPECT_EQ(original_option.enable_systrace, new_options.enable_systrace); |
3077 } | 3077 } |
3078 } | 3078 } |
3079 } | 3079 } |
3080 } | 3080 } |
3081 | 3081 |
3082 | 3082 } // namespace trace_event |
3083 } // namespace debug | |
3084 } // namespace base | 3083 } // namespace base |
OLD | NEW |