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

Side by Side Diff: base/android/path_utils_unittest.cc

Issue 10161032: Add PathUtilsTest. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/android/path_utils.h ('k') | base/base.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
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 typedef testing::Test PathUtilsTest;
13
14 TEST_F(PathUtilsTest, TestGetDataDirectory) {
15 // The string comes from the Java side and depends on the APK
16 // we are running in. Assumes that we are packaged in
17 // org.chromium.native_test
18 EXPECT_STREQ("/data/data/org.chromium.native_test/app_chrome",
19 GetDataDirectory().c_str());
20 }
21
22 TEST_F(PathUtilsTest, TestGetCacheDirectory) {
23 // The string comes from the Java side and depends on the APK
24 // we are running in. Assumes that we are packaged in
25 // org.chromium.native_test
26 EXPECT_STREQ("/data/data/org.chromium.native_test/cache",
27 GetCacheDirectory().c_str());
28 }
29
30 } // namespace android
31 } // namespace base
OLDNEW
« no previous file with comments | « base/android/path_utils.h ('k') | base/base.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698