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

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

Issue 2006943003: [tracing] Sanitize process memory dumps for background mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@whitelist_mdp
Patch Set: Fix stripping. Created 4 years, 6 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/BUILD.gn ('k') | base/trace_event/memory_allocator_dump.cc » ('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/java_heap_dump_provider_android.h" 5 #include "base/trace_event/java_heap_dump_provider_android.h"
6 6
7 #include "base/trace_event/process_memory_dump.h" 7 #include "base/trace_event/process_memory_dump.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 9
10 namespace base { 10 namespace base {
11 namespace trace_event { 11 namespace trace_event {
12 12
13 TEST(JavaHeapDumpProviderTest, JavaHeapDump) { 13 TEST(JavaHeapDumpProviderTest, JavaHeapDump) {
14 auto jhdp = JavaHeapDumpProvider::GetInstance(); 14 auto jhdp = JavaHeapDumpProvider::GetInstance();
15 std::unique_ptr<ProcessMemoryDump> pmd(new ProcessMemoryDump(nullptr));
16 MemoryDumpArgs dump_args = {MemoryDumpLevelOfDetail::DETAILED}; 15 MemoryDumpArgs dump_args = {MemoryDumpLevelOfDetail::DETAILED};
16 std::unique_ptr<ProcessMemoryDump> pmd(
17 new ProcessMemoryDump(nullptr, dump_args));
17 18
18 jhdp->OnMemoryDump(dump_args, pmd.get()); 19 jhdp->OnMemoryDump(dump_args, pmd.get());
19 } 20 }
20 21
21 } // namespace trace_event 22 } // namespace trace_event
22 } // namespace base 23 } // namespace base
OLDNEW
« no previous file with comments | « base/BUILD.gn ('k') | base/trace_event/memory_allocator_dump.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698