java_heap_dump_provider_android_unittest.cc 707 B

12345678910111213141516171819202122
  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.
  4. #include "base/trace_event/java_heap_dump_provider_android.h"
  5. #include "base/trace_event/process_memory_dump.h"
  6. #include "testing/gtest/include/gtest/gtest.h"
  7. namespace base {
  8. namespace trace_event {
  9. TEST(JavaHeapDumpProviderTest, JavaHeapDump) {
  10. auto* jhdp = JavaHeapDumpProvider::GetInstance();
  11. MemoryDumpArgs dump_args = {MemoryDumpLevelOfDetail::DETAILED};
  12. std::unique_ptr<ProcessMemoryDump> pmd(new ProcessMemoryDump(dump_args));
  13. jhdp->OnMemoryDump(dump_args, pmd.get());
  14. }
  15. } // namespace trace_event
  16. } // namespace base