summaryrefslogtreecommitdiffstats
path: root/chromium/base/trace_event/java_heap_dump_provider_android_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/base/trace_event/java_heap_dump_provider_android_unittest.cc')
-rw-r--r--chromium/base/trace_event/java_heap_dump_provider_android_unittest.cc21
1 files changed, 21 insertions, 0 deletions
diff --git a/chromium/base/trace_event/java_heap_dump_provider_android_unittest.cc b/chromium/base/trace_event/java_heap_dump_provider_android_unittest.cc
new file mode 100644
index 00000000000..bbefba518d0
--- /dev/null
+++ b/chromium/base/trace_event/java_heap_dump_provider_android_unittest.cc
@@ -0,0 +1,21 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "base/trace_event/java_heap_dump_provider_android.h"
+
+#include "base/trace_event/process_memory_dump.h"
+#include "testing/gtest/include/gtest/gtest.h"
+
+namespace base {
+namespace trace_event {
+
+TEST(JavaHeapDumpProviderTest, JavaHeapDump) {
+ auto jhdp = JavaHeapDumpProvider::GetInstance();
+ scoped_ptr<ProcessMemoryDump> pmd(new ProcessMemoryDump(nullptr));
+
+ jhdp->OnMemoryDump(pmd.get());
+}
+
+} // namespace trace_event
+} // namespace base