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

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

Issue 14895013: Move webkit/fileapi/file_system_mount_point_provider.h to webkit/browser/fileapi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 <string> 5 #include <string>
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/files/scoped_temp_dir.h" 8 #include "base/files/scoped_temp_dir.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/message_loop_proxy.h" 10 #include "base/message_loop_proxy.h"
11 #include "base/platform_file.h" 11 #include "base/platform_file.h"
12 #include "base/strings/sys_string_conversions.h" 12 #include "base/strings/sys_string_conversions.h"
13 #include "base/utf_string_conversions.h" 13 #include "base/utf_string_conversions.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 #include "webkit/fileapi/async_file_test_helper.h" 15 #include "webkit/browser/fileapi/async_file_test_helper.h"
16 #include "webkit/fileapi/file_system_context.h" 16 #include "webkit/browser/fileapi/file_system_context.h"
17 #include "webkit/fileapi/file_system_file_util.h" 17 #include "webkit/browser/fileapi/file_system_file_util.h"
18 #include "webkit/fileapi/file_system_operation_context.h" 18 #include "webkit/browser/fileapi/file_system_operation_context.h"
19 #include "webkit/browser/fileapi/local_file_system_test_helper.h"
20 #include "webkit/browser/fileapi/local_file_util.h"
21 #include "webkit/browser/fileapi/native_file_util.h"
19 #include "webkit/fileapi/file_system_types.h" 22 #include "webkit/fileapi/file_system_types.h"
20 #include "webkit/fileapi/local_file_system_test_helper.h"
21 #include "webkit/fileapi/local_file_util.h"
22 #include "webkit/fileapi/native_file_util.h"
23 23
24 namespace fileapi { 24 namespace fileapi {
25 25
26 // TODO(dmikurube): Cover all public methods in LocalFileUtil. 26 // TODO(dmikurube): Cover all public methods in LocalFileUtil.
27 class LocalFileUtilTest : public testing::Test { 27 class LocalFileUtilTest : public testing::Test {
28 public: 28 public:
29 LocalFileUtilTest() 29 LocalFileUtilTest()
30 : test_helper_(GURL("http://foo/"), kFileSystemTypeTest) {} 30 : test_helper_(GURL("http://foo/"), kFileSystemTypeTest) {}
31 31
32 virtual void SetUp() { 32 virtual void SetUp() {
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 AsyncFileTestHelper::Move(file_system_context(), 360 AsyncFileTestHelper::Move(file_system_context(),
361 Path(from_dir), Path(to_dir))); 361 Path(from_dir), Path(to_dir)));
362 362
363 EXPECT_FALSE(DirectoryExists(from_dir)); 363 EXPECT_FALSE(DirectoryExists(from_dir));
364 EXPECT_TRUE(DirectoryExists(to_dir)); 364 EXPECT_TRUE(DirectoryExists(to_dir));
365 EXPECT_TRUE(FileExists(to_file)); 365 EXPECT_TRUE(FileExists(to_file));
366 EXPECT_EQ(1020, GetSize(to_file)); 366 EXPECT_EQ(1020, GetSize(to_file));
367 } 367 }
368 368
369 } // namespace fileapi 369 } // namespace fileapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698