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

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

Issue 15371005: Move browser-specific FileAPI code from webkit/fileapi 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) 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 "base/file_util.h" 5 #include "base/file_util.h"
6 #include "base/files/file_path.h" 6 #include "base/files/file_path.h"
7 #include "base/files/scoped_temp_dir.h" 7 #include "base/files/scoped_temp_dir.h"
8 #include "base/platform_file.h" 8 #include "base/platform_file.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 #include "webkit/fileapi/native_file_util.h" 10 #include "webkit/browser/fileapi/native_file_util.h"
11 11
12 namespace fileapi { 12 namespace fileapi {
13 13
14 class NativeFileUtilTest : public testing::Test { 14 class NativeFileUtilTest : public testing::Test {
15 public: 15 public:
16 NativeFileUtilTest() {} 16 NativeFileUtilTest() {}
17 17
18 virtual void SetUp() { 18 virtual void SetUp() {
19 ASSERT_TRUE(data_dir_.CreateUniqueTempDir()); 19 ASSERT_TRUE(data_dir_.CreateUniqueTempDir());
20 } 20 }
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 Path("nodir").AppendASCII("file"), 332 Path("nodir").AppendASCII("file"),
333 false)); 333 false));
334 // Destination's parent is a file. 334 // Destination's parent is a file.
335 EXPECT_EQ(base::PLATFORM_FILE_ERROR_NOT_FOUND, 335 EXPECT_EQ(base::PLATFORM_FILE_ERROR_NOT_FOUND,
336 NativeFileUtil::CopyOrMoveFile(from_file, 336 NativeFileUtil::CopyOrMoveFile(from_file,
337 Path("tofile1").AppendASCII("file"), 337 Path("tofile1").AppendASCII("file"),
338 false)); 338 false));
339 } 339 }
340 340
341 } // namespace fileapi 341 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/native_file_util.cc ('k') | webkit/browser/fileapi/obfuscated_file_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698