| 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 |
| 5 #include "base/bind.h" | 7 #include "base/bind.h" |
| 6 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/macros.h" |
| 7 #include "base/metrics/histogram_macros.h" | 10 #include "base/metrics/histogram_macros.h" |
| 8 #include "base/strings/pattern.h" | 11 #include "base/strings/pattern.h" |
| 9 #include "base/trace_event/trace_event.h" | 12 #include "base/trace_event/trace_event.h" |
| 10 #include "content/browser/tracing/background_tracing_manager_impl.h" | 13 #include "content/browser/tracing/background_tracing_manager_impl.h" |
| 11 #include "content/browser/tracing/background_tracing_rule.h" | 14 #include "content/browser/tracing/background_tracing_rule.h" |
| 12 #include "content/public/common/content_switches.h" | 15 #include "content/public/common/content_switches.h" |
| 13 #include "content/public/test/content_browser_test.h" | 16 #include "content/public/test/content_browser_test.h" |
| 14 #include "content/public/test/content_browser_test_utils.h" | 17 #include "content/public/test/content_browser_test_utils.h" |
| 15 #include "content/public/test/test_utils.h" | 18 #include "content/public/test/test_utils.h" |
| 16 #include "third_party/zlib/zlib.h" | 19 #include "third_party/zlib/zlib.h" |
| (...skipping 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1104 BackgroundTracingManager::GetInstance()->TriggerNamedEvent( | 1107 BackgroundTracingManager::GetInstance()->TriggerNamedEvent( |
| 1105 handle, base::Bind(&StartedFinalizingCallback, base::Closure(), false)); | 1108 handle, base::Bind(&StartedFinalizingCallback, base::Closure(), false)); |
| 1106 | 1109 |
| 1107 run_loop.Run(); | 1110 run_loop.Run(); |
| 1108 | 1111 |
| 1109 EXPECT_TRUE(upload_config_wrapper.get_receive_count() == 1); | 1112 EXPECT_TRUE(upload_config_wrapper.get_receive_count() == 1); |
| 1110 } | 1113 } |
| 1111 } | 1114 } |
| 1112 | 1115 |
| 1113 } // namespace content | 1116 } // namespace content |
| OLD | NEW |