Roll src/third_party/WebKit dbf9be3:8d6c3d5 (svn 202308:202312)
[chromium-blink-merge.git] / base / trace_event / java_heap_dump_provider_android_unittest.cc
blob35f3f17fbb1dee2407760a47a13895cb8626198d
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
3 // found in the LICENSE file.
5 #include "base/trace_event/java_heap_dump_provider_android.h"
7 #include "base/trace_event/process_memory_dump.h"
8 #include "testing/gtest/include/gtest/gtest.h"
10 namespace base {
11 namespace trace_event {
13 TEST(JavaHeapDumpProviderTest, JavaHeapDump) {
14 auto jhdp = JavaHeapDumpProvider::GetInstance();
15 scoped_ptr<ProcessMemoryDump> pmd(new ProcessMemoryDump(nullptr));
16 MemoryDumpArgs dump_args = {MemoryDumpLevelOfDetail::DETAILED};
18 jhdp->OnMemoryDump(dump_args, pmd.get());
21 } // namespace trace_event
22 } // namespace base