Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(691)

Side by Side Diff: base/trace_event/memory_dump_manager_unittest.cc

Issue 2884763002: Automated IWYU fix for TaskRunner includes. (Closed)
Patch Set: rebase on r472096 Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/trace_event/memory_dump_manager.cc ('k') | cc/benchmarks/unittest_only_benchmark.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "base/trace_event/memory_dump_manager.h" 5 #include "base/trace_event/memory_dump_manager.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/bind_helpers.h" 13 #include "base/bind_helpers.h"
14 #include "base/callback.h" 14 #include "base/callback.h"
15 #include "base/memory/ptr_util.h" 15 #include "base/memory/ptr_util.h"
16 #include "base/memory/ref_counted_memory.h" 16 #include "base/memory/ref_counted_memory.h"
17 #include "base/message_loop/message_loop.h" 17 #include "base/message_loop/message_loop.h"
18 #include "base/run_loop.h" 18 #include "base/run_loop.h"
19 #include "base/single_thread_task_runner.h"
19 #include "base/strings/stringprintf.h" 20 #include "base/strings/stringprintf.h"
20 #include "base/synchronization/waitable_event.h" 21 #include "base/synchronization/waitable_event.h"
21 #include "base/test/sequenced_worker_pool_owner.h" 22 #include "base/test/sequenced_worker_pool_owner.h"
22 #include "base/test/test_io_thread.h" 23 #include "base/test/test_io_thread.h"
23 #include "base/test/trace_event_analyzer.h" 24 #include "base/test/trace_event_analyzer.h"
24 #include "base/threading/platform_thread.h" 25 #include "base/threading/platform_thread.h"
25 #include "base/threading/sequenced_task_runner_handle.h" 26 #include "base/threading/sequenced_task_runner_handle.h"
26 #include "base/threading/sequenced_worker_pool.h" 27 #include "base/threading/sequenced_worker_pool.h"
27 #include "base/threading/thread.h" 28 #include "base/threading/thread.h"
28 #include "base/threading/thread_task_runner_handle.h" 29 #include "base/threading/thread_task_runner_handle.h"
(...skipping 1374 matching lines...) Expand 10 before | Expand all | Expand 10 after
1403 EXPECT_EQ(3u, result.chrome_dump.v8_total_kb); 1404 EXPECT_EQ(3u, result.chrome_dump.v8_total_kb);
1404 // partition_alloc has partition_alloc/allocated_objects/* which is a subset 1405 // partition_alloc has partition_alloc/allocated_objects/* which is a subset
1405 // of partition_alloc/partitions/* so we only count the latter. 1406 // of partition_alloc/partitions/* so we only count the latter.
1406 EXPECT_EQ(4u, result.chrome_dump.partition_alloc_total_kb); 1407 EXPECT_EQ(4u, result.chrome_dump.partition_alloc_total_kb);
1407 // resident_set_kb should read from process_totals. 1408 // resident_set_kb should read from process_totals.
1408 EXPECT_EQ(5u, result.os_dump.resident_set_kb); 1409 EXPECT_EQ(5u, result.os_dump.resident_set_kb);
1409 }; 1410 };
1410 1411
1411 } // namespace trace_event 1412 } // namespace trace_event
1412 } // namespace base 1413 } // namespace base
OLDNEW
« no previous file with comments | « base/trace_event/memory_dump_manager.cc ('k') | cc/benchmarks/unittest_only_benchmark.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698