OLD | NEW |
---|---|
(Empty) | |
1 // 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.
| |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "base/android/path_utils.h" | |
6 | |
7 #include "testing/gtest/include/gtest/gtest.h" | |
8 | |
9 namespace base { | |
10 namespace android { | |
11 | |
12 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.
| |
13 }; | |
14 | |
15 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.
| |
16 EXPECT_STREQ("/data/data/org.chromium.native_test/app_chrome", | |
17 GetDataDirectory().c_str()); | |
18 } | |
19 | |
20 TEST_F(PathUtilsTest, TestGetCacheDirectory) { | |
21 EXPECT_STREQ("/data/data/org.chromium.native_test/cache", | |
22 GetCacheDirectory().c_str()); | |
23 } | |
24 | |
25 } // namespace android | |
26 } // namespace base | |
OLD | NEW |