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

Unified Diff: runtime/bin/directory_test.cc

Issue 2280793002: Fix directory test for windows (Closed)
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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/directory_test.cc
diff --git a/runtime/bin/directory_test.cc b/runtime/bin/directory_test.cc
index 2cc4763d7b6ea5c8ea38ad23cd829361da6cd4d5..d5b81755b9f0aed2f735d7565f43dddeeda95eb7 100644
--- a/runtime/bin/directory_test.cc
+++ b/runtime/bin/directory_test.cc
@@ -18,21 +18,19 @@ UNIT_TEST_CASE(DirectoryCurrentNoScope) {
}
-UNIT_TEST_CASE(DirectoryExists) {
- char* current_dir = dart::bin::Directory::CurrentNoScope();
- EXPECT_NOTNULL(current_dir);
-
- dart::bin::Directory::ExistsResult r =
- dart::bin::Directory::Exists(current_dir);
- EXPECT_EQ(dart::bin::Directory::EXISTS, r);
-
- free(current_dir);
+TEST_CASE(DirectoryCurrent) {
+ const char* current = dart::bin::Directory::Current();
+ EXPECT_NOTNULL(current);
}
-TEST_CASE(DirectoryCurrent) {
+TEST_CASE(DirectoryExists) {
const char* current = dart::bin::Directory::Current();
EXPECT_NOTNULL(current);
+
+ dart::bin::Directory::ExistsResult r =
+ dart::bin::Directory::Exists(current);
+ EXPECT_EQ(dart::bin::Directory::EXISTS, r);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698