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

Side by Side Diff: content/browser/fileapi/native_file_util_unittest.cc

Issue 253753007: Move all remaining fileapi and quota unit tests from webkit/ to content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address feedback Created 6 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/files/file.h" 8 #include "base/files/file.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/files/scoped_temp_dir.h" 10 #include "base/files/scoped_temp_dir.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 #include "webkit/browser/fileapi/native_file_util.h" 12 #include "webkit/browser/fileapi/native_file_util.h"
13 13
14 namespace fileapi { 14 using fileapi::FileSystemFileUtil;
15 using fileapi::FileSystemOperation;
16 using fileapi::NativeFileUtil;
17
18 namespace content {
15 19
16 class NativeFileUtilTest : public testing::Test { 20 class NativeFileUtilTest : public testing::Test {
17 public: 21 public:
18 NativeFileUtilTest() {} 22 NativeFileUtilTest() {}
19 23
20 virtual void SetUp() { 24 virtual void SetUp() {
21 ASSERT_TRUE(data_dir_.CreateUniqueTempDir()); 25 ASSERT_TRUE(data_dir_.CreateUniqueTempDir());
22 } 26 }
23 27
24 protected: 28 protected:
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 from_file, to_file3, 399 from_file, to_file3,
396 FileSystemOperation::OPTION_PRESERVE_LAST_MODIFIED, 400 FileSystemOperation::OPTION_PRESERVE_LAST_MODIFIED,
397 NativeFileUtil::MOVE)); 401 NativeFileUtil::MOVE));
398 402
399 ASSERT_TRUE(FileExists(to_file3)); 403 ASSERT_TRUE(FileExists(to_file3));
400 ASSERT_EQ(base::File::FILE_OK, 404 ASSERT_EQ(base::File::FILE_OK,
401 NativeFileUtil::GetFileInfo(to_file2, &file_info2)); 405 NativeFileUtil::GetFileInfo(to_file2, &file_info2));
402 EXPECT_EQ(file_info1.last_modified, file_info2.last_modified); 406 EXPECT_EQ(file_info1.last_modified, file_info2.last_modified);
403 } 407 }
404 408
405 } // namespace fileapi 409 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698