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

Unified Diff: base/json/json_value_serializer_unittest.cc

Issue 18286004: Move PathExists to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | « base/json/json_reader_unittest.cc ('k') | base/mac/mac_util_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/json/json_value_serializer_unittest.cc
diff --git a/base/json/json_value_serializer_unittest.cc b/base/json/json_value_serializer_unittest.cc
index 78be11e0665bdac0bda95d229ac0f0f1867306a7..ce7129fa2ed42862babce124587a6701abd97be0 100644
--- a/base/json/json_value_serializer_unittest.cc
+++ b/base/json/json_value_serializer_unittest.cc
@@ -385,7 +385,7 @@ TEST_F(JSONFileValueSerializerTest, Roundtrip) {
original_file_path =
original_file_path.Append(FILE_PATH_LITERAL("serializer_test.json"));
- ASSERT_TRUE(file_util::PathExists(original_file_path));
+ ASSERT_TRUE(PathExists(original_file_path));
JSONFileValueSerializer deserializer(original_file_path);
scoped_ptr<Value> root;
@@ -417,10 +417,10 @@ TEST_F(JSONFileValueSerializerTest, Roundtrip) {
const base::FilePath written_file_path =
temp_dir_.path().Append(FILE_PATH_LITERAL("test_output.js"));
- ASSERT_FALSE(file_util::PathExists(written_file_path));
+ ASSERT_FALSE(PathExists(written_file_path));
JSONFileValueSerializer serializer(written_file_path);
ASSERT_TRUE(serializer.Serialize(*root));
- ASSERT_TRUE(file_util::PathExists(written_file_path));
+ ASSERT_TRUE(PathExists(written_file_path));
// Now compare file contents.
EXPECT_TRUE(file_util::TextContentsEqual(original_file_path,
@@ -434,7 +434,7 @@ TEST_F(JSONFileValueSerializerTest, RoundtripNested) {
original_file_path = original_file_path.Append(
FILE_PATH_LITERAL("serializer_nested_test.json"));
- ASSERT_TRUE(file_util::PathExists(original_file_path));
+ ASSERT_TRUE(PathExists(original_file_path));
JSONFileValueSerializer deserializer(original_file_path);
scoped_ptr<Value> root;
@@ -445,10 +445,10 @@ TEST_F(JSONFileValueSerializerTest, RoundtripNested) {
base::FilePath written_file_path = temp_dir_.path().Append(
FILE_PATH_LITERAL("test_output.json"));
- ASSERT_FALSE(file_util::PathExists(written_file_path));
+ ASSERT_FALSE(PathExists(written_file_path));
JSONFileValueSerializer serializer(written_file_path);
ASSERT_TRUE(serializer.Serialize(*root));
- ASSERT_TRUE(file_util::PathExists(written_file_path));
+ ASSERT_TRUE(PathExists(written_file_path));
// Now compare file contents.
EXPECT_TRUE(file_util::TextContentsEqual(original_file_path,
@@ -461,7 +461,7 @@ TEST_F(JSONFileValueSerializerTest, NoWhitespace) {
ASSERT_TRUE(PathService::Get(DIR_TEST_DATA, &source_file_path));
source_file_path = source_file_path.Append(
FILE_PATH_LITERAL("serializer_test_nowhitespace.json"));
- ASSERT_TRUE(file_util::PathExists(source_file_path));
+ ASSERT_TRUE(PathExists(source_file_path));
JSONFileValueSerializer serializer(source_file_path);
scoped_ptr<Value> root;
root.reset(serializer.Deserialize(NULL, NULL));
« no previous file with comments | « base/json/json_reader_unittest.cc ('k') | base/mac/mac_util_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698