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

Side by Side Diff: webkit/fileapi/local_file_util_unittest.cc

Issue 9004019: Cleanup: Removing FileSystemPathManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 11 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 | « webkit/fileapi/local_file_util.cc ('k') | webkit/fileapi/mock_file_system_options.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <string> 5 #include <string>
6 6
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 #include "base/message_loop_proxy.h" 8 #include "base/message_loop_proxy.h"
9 #include "base/platform_file.h" 9 #include "base/platform_file.h"
10 #include "base/scoped_temp_dir.h" 10 #include "base/scoped_temp_dir.h"
11 #include "base/sys_string_conversions.h" 11 #include "base/sys_string_conversions.h"
12 #include "base/utf_string_conversions.h" 12 #include "base/utf_string_conversions.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 #include "webkit/fileapi/file_system_context.h" 14 #include "webkit/fileapi/file_system_context.h"
15 #include "webkit/fileapi/file_system_file_util.h" 15 #include "webkit/fileapi/file_system_file_util.h"
16 #include "webkit/fileapi/file_system_operation_context.h" 16 #include "webkit/fileapi/file_system_operation_context.h"
17 #include "webkit/fileapi/file_system_path_manager.h"
18 #include "webkit/fileapi/file_system_test_helper.h" 17 #include "webkit/fileapi/file_system_test_helper.h"
19 #include "webkit/fileapi/file_system_types.h" 18 #include "webkit/fileapi/file_system_types.h"
20 #include "webkit/fileapi/local_file_util.h" 19 #include "webkit/fileapi/local_file_util.h"
21 #include "webkit/fileapi/native_file_util.h" 20 #include "webkit/fileapi/native_file_util.h"
22 21
23 namespace fileapi { 22 namespace fileapi {
24 23
25 // TODO(dmikurube): Cover all public methods in LocalFileUtil. 24 // TODO(dmikurube): Cover all public methods in LocalFileUtil.
26 class LocalFileUtilTest : public testing::Test { 25 class LocalFileUtilTest : public testing::Test {
27 public: 26 public:
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 ASSERT_EQ(base::PLATFORM_FILE_OK, 261 ASSERT_EQ(base::PLATFORM_FILE_OK,
263 FileUtil()->Move(context.get(), Path(from_dir), Path(to_dir))); 262 FileUtil()->Move(context.get(), Path(from_dir), Path(to_dir)));
264 263
265 EXPECT_FALSE(DirectoryExists(from_dir)); 264 EXPECT_FALSE(DirectoryExists(from_dir));
266 EXPECT_TRUE(DirectoryExists(to_dir)); 265 EXPECT_TRUE(DirectoryExists(to_dir));
267 EXPECT_TRUE(FileExists(to_file)); 266 EXPECT_TRUE(FileExists(to_file));
268 EXPECT_EQ(1020, GetSize(to_file)); 267 EXPECT_EQ(1020, GetSize(to_file));
269 } 268 }
270 269
271 } // namespace fileapi 270 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/fileapi/local_file_util.cc ('k') | webkit/fileapi/mock_file_system_options.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698