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

Unified Diff: runtime/bin/directory_test.cc

Issue 2281223002: [fuchsia] Some directory operations (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
Index: runtime/bin/directory_test.cc
diff --git a/runtime/bin/directory_test.cc b/runtime/bin/directory_test.cc
index d5b81755b9f0aed2f735d7565f43dddeeda95eb7..b99609fbb9135ffb56bb1c2ab1ef050b2645407d 100644
--- a/runtime/bin/directory_test.cc
+++ b/runtime/bin/directory_test.cc
@@ -28,8 +28,7 @@ TEST_CASE(DirectoryExists) {
const char* current = dart::bin::Directory::Current();
EXPECT_NOTNULL(current);
- dart::bin::Directory::ExistsResult r =
- dart::bin::Directory::Exists(current);
+ dart::bin::Directory::ExistsResult r = dart::bin::Directory::Exists(current);
EXPECT_EQ(dart::bin::Directory::EXISTS, r);
}
@@ -40,6 +39,16 @@ TEST_CASE(DirectorySystemTemp) {
}
+TEST_CASE(DirectorySystemTempExists) {
+ const char* system_temp = dart::bin::Directory::SystemTemp();
+ EXPECT_NOTNULL(system_temp);
+
+ dart::bin::Directory::ExistsResult r =
+ dart::bin::Directory::Exists(system_temp);
+ EXPECT_EQ(dart::bin::Directory::EXISTS, r);
+}
+
+
TEST_CASE(DirectoryCreateTemp) {
const char* kTempPrefix = "test_prefix";
const char* system_temp = dart::bin::Directory::SystemTemp();

Powered by Google App Engine
This is Rietveld 408576698