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 <stdint.h> | 5 #include <stdint.h> |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <tuple> | 8 #include <tuple> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
12 #include "base/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
13 #include "base/trace_event/memory_dump_manager.h" | 13 #include "base/trace_event/memory_dump_manager.h" |
14 #include "base/trace_event/memory_dump_provider.h" | 14 #include "base/trace_event/memory_dump_provider.h" |
15 #include "base/trace_event/trace_event.h" | 15 #include "base/trace_event/trace_event.h" |
16 #include "components/tracing/child_memory_dump_manager_delegate_impl.h" | 16 #include "components/tracing/child_memory_dump_manager_delegate_impl.h" |
17 #include "components/tracing/child_trace_message_filter.h" | 17 #include "components/tracing/child_trace_message_filter.h" |
18 #include "components/tracing/tracing_messages.h" | 18 #include "components/tracing/tracing_messages.h" |
19 #include "content/public/test/render_view_test.h" | 19 #include "content/public/test/render_view_test.h" |
20 #include "testing/gmock/include/gmock/gmock.h" | 20 #include "testing/gmock/include/gmock/gmock.h" |
21 | 21 |
22 using base::trace_event::MemoryDumpManager; | 22 using base::trace_event::MemoryDumpManager; |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 TracingMsg_GlobalMemoryDumpResponse(args.dump_guid, success)); | 302 TracingMsg_GlobalMemoryDumpResponse(args.dump_guid, success)); |
303 EXPECT_EQ(i + 1, callback_call_count_); | 303 EXPECT_EQ(i + 1, callback_call_count_); |
304 EXPECT_EQ(args.dump_guid, last_callback_dump_guid_); | 304 EXPECT_EQ(args.dump_guid, last_callback_dump_guid_); |
305 EXPECT_EQ(success, last_callback_status_); | 305 EXPECT_EQ(success, last_callback_status_); |
306 } | 306 } |
307 | 307 |
308 DisableTracing(); | 308 DisableTracing(); |
309 } | 309 } |
310 | 310 |
311 } // namespace tracing | 311 } // namespace tracing |
OLD | NEW |