summaryrefslogtreecommitdiff
path: root/src/heap_test.cc
diff options
context:
space:
mode:
author Brian Carlstrom <bdc@google.com> 2011-08-23 16:02:11 -0700
committer Brian Carlstrom <bdc@google.com> 2011-08-31 09:46:57 -0700
commit1f87008b165d26541d832ff805250afdc89c253d (patch)
treea84122b3757b8f856eb0656a951ed6621b6d01a8 /src/heap_test.cc
parentc5bfa8f49d8548d7c685a99b411311ef56bedffa (diff)
Add HeapTest and make GC work enough to pass it
Change-Id: If06eaef2921b64b3226bfd347acaec60ec993e67
Diffstat (limited to 'src/heap_test.cc')
-rw-r--r--src/heap_test.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/heap_test.cc b/src/heap_test.cc
new file mode 100644
index 0000000000..568ddd2830
--- /dev/null
+++ b/src/heap_test.cc
@@ -0,0 +1,14 @@
+// Copyright 2011 Google Inc. All Rights Reserved.
+
+#include "common_test.h"
+
+namespace art {
+
+class HeapTest : public CommonTest {};
+
+TEST_F(HeapTest, GarbageCollectClassLinkerInit) {
+ // garbage is created during ClassLinker::Init
+ Heap::CollectGarbage();
+}
+
+} // namespace art