Index: base/android/path_utils_unittest.cc |
diff --git a/base/android/path_utils_unittest.cc b/base/android/path_utils_unittest.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..bfe4a606914aee832906e0e7beaae8a2e81e6f32 |
--- /dev/null |
+++ b/base/android/path_utils_unittest.cc |
@@ -0,0 +1,26 @@ |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
John Grabowski
2012/04/25 20:22:12
2012
nilesh
2012/04/25 23:33:26
Done.
|
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "base/android/path_utils.h" |
+ |
+#include "testing/gtest/include/gtest/gtest.h" |
+ |
+namespace base { |
+namespace android { |
+ |
+class PathUtilsTest : public testing::Test { |
Yaron
2012/04/25 20:32:37
Seen this more commonly as:
typedef testing::Test
nilesh
2012/04/25 23:33:26
Done.
|
+}; |
+ |
+TEST_F(PathUtilsTest, TestGetDataDirectory) { |
John Grabowski
2012/04/25 20:22:12
Add comments to explain hard-coding.
E.g. "this pa
nilesh
2012/04/25 23:33:26
Done.
|
+ EXPECT_STREQ("/data/data/org.chromium.native_test/app_chrome", |
+ GetDataDirectory().c_str()); |
+} |
+ |
+TEST_F(PathUtilsTest, TestGetCacheDirectory) { |
+ EXPECT_STREQ("/data/data/org.chromium.native_test/cache", |
+ GetCacheDirectory().c_str()); |
+} |
+ |
+} // namespace android |
+} // namespace base |