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

Side by Side Diff: webkit/browser/fileapi/obfuscated_file_util_unittest.cc

Issue 19579005: Move ReadFileToString to the base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <set> 5 #include <set>
6 #include <string> 6 #include <string>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 2349 matching lines...) Expand 10 before | Expand all | Expand 10 after
2360 origin_, true /* create */, &error); 2360 origin_, true /* create */, &error);
2361 EXPECT_EQ(base::PLATFORM_FILE_OK, error); 2361 EXPECT_EQ(base::PLATFORM_FILE_OK, error);
2362 2362
2363 // The database is migrated from the old one. 2363 // The database is migrated from the old one.
2364 EXPECT_TRUE(base::DirectoryExists(origin_directory)); 2364 EXPECT_TRUE(base::DirectoryExists(origin_directory));
2365 EXPECT_FALSE(base::DirectoryExists(old_directory_db_path)); 2365 EXPECT_FALSE(base::DirectoryExists(old_directory_db_path));
2366 2366
2367 // Check we see the same contents in the new origin directory. 2367 // Check we see the same contents in the new origin directory.
2368 std::string origin_db_data; 2368 std::string origin_db_data;
2369 EXPECT_TRUE(base::PathExists(origin_directory.AppendASCII("dummy"))); 2369 EXPECT_TRUE(base::PathExists(origin_directory.AppendASCII("dummy")));
2370 EXPECT_TRUE(file_util::ReadFileToString( 2370 EXPECT_TRUE(base::ReadFileToString(
2371 origin_directory.AppendASCII("dummy"), &origin_db_data)); 2371 origin_directory.AppendASCII("dummy"), &origin_db_data));
2372 EXPECT_EQ(kFakeDirectoryData, origin_db_data); 2372 EXPECT_EQ(kFakeDirectoryData, origin_db_data);
2373 } 2373 }
2374 2374
2375 } // namespace fileapi 2375 } // namespace fileapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698