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

Unified Diff: runtime/vm/os_test.cc

Issue 2276803002: Remove unused external typed data factories. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/os_macos.cc ('k') | runtime/vm/os_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/os_test.cc
diff --git a/runtime/vm/os_test.cc b/runtime/vm/os_test.cc
index d7239a6fbc5ffa2fba10499fb515910ee4f5090f..fe0160976331e7ad1f8912149220a4dd83fa6228 100644
--- a/runtime/vm/os_test.cc
+++ b/runtime/vm/os_test.cc
@@ -53,28 +53,4 @@ UNIT_TEST_CASE(OsFuncs) {
EXPECT_LE(1, procs);
}
-
-UNIT_TEST_CASE(OSAlignedAllocate) {
- // TODO(johnmccutchan): Test other alignments, once we support
- // alignments != 16 on Mac.
- void* p1 = OS::AlignedAllocate(1023, 16);
- void* p2 = OS::AlignedAllocate(1025, 16);
- void* p3 = OS::AlignedAllocate(1025, 16);
- void* p4 = OS::AlignedAllocate(1, 16);
- void* p5 = OS::AlignedAllocate(2, 16);
- void* p6 = OS::AlignedAllocate(4, 16);
- EXPECT((reinterpret_cast<intptr_t>(p1) & 15) == 0);
- EXPECT((reinterpret_cast<intptr_t>(p2) & 15) == 0);
- EXPECT((reinterpret_cast<intptr_t>(p3) & 15) == 0);
- EXPECT((reinterpret_cast<intptr_t>(p4) & 15) == 0);
- EXPECT((reinterpret_cast<intptr_t>(p5) & 15) == 0);
- EXPECT((reinterpret_cast<intptr_t>(p6) & 15) == 0);
- OS::AlignedFree(p1);
- OS::AlignedFree(p2);
- OS::AlignedFree(p3);
- OS::AlignedFree(p4);
- OS::AlignedFree(p5);
- OS::AlignedFree(p6);
-}
-
} // namespace dart
« no previous file with comments | « runtime/vm/os_macos.cc ('k') | runtime/vm/os_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698