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

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

Issue 2316043002: //content: Change ScopedTempDir::path() to GetPath() (Closed)
Patch Set: Just rebased Created 4 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 <stdint.h> 5 #include <stdint.h>
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 9
10 #include "base/files/file.h" 10 #include "base/files/file.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 const storage::FileSystemType kFileSystemType = storage::kFileSystemTypeTest; 42 const storage::FileSystemType kFileSystemType = storage::kFileSystemTypeTest;
43 43
44 } // namespace 44 } // namespace
45 45
46 class LocalFileUtilTest : public testing::Test { 46 class LocalFileUtilTest : public testing::Test {
47 public: 47 public:
48 LocalFileUtilTest() {} 48 LocalFileUtilTest() {}
49 49
50 void SetUp() override { 50 void SetUp() override {
51 ASSERT_TRUE(data_dir_.CreateUniqueTempDir()); 51 ASSERT_TRUE(data_dir_.CreateUniqueTempDir());
52 file_system_context_ = CreateFileSystemContextForTesting( 52 file_system_context_ =
53 NULL, data_dir_.path()); 53 CreateFileSystemContextForTesting(NULL, data_dir_.GetPath());
54 } 54 }
55 55
56 void TearDown() override { 56 void TearDown() override {
57 file_system_context_ = NULL; 57 file_system_context_ = NULL;
58 base::RunLoop().RunUntilIdle(); 58 base::RunLoop().RunUntilIdle();
59 } 59 }
60 60
61 protected: 61 protected:
62 FileSystemOperationContext* NewContext() { 62 FileSystemOperationContext* NewContext() {
63 FileSystemOperationContext* context = 63 FileSystemOperationContext* context =
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 CreateURL(from_dir), 372 CreateURL(from_dir),
373 CreateURL(to_dir))); 373 CreateURL(to_dir)));
374 374
375 EXPECT_FALSE(DirectoryExists(from_dir)); 375 EXPECT_FALSE(DirectoryExists(from_dir));
376 EXPECT_TRUE(DirectoryExists(to_dir)); 376 EXPECT_TRUE(DirectoryExists(to_dir));
377 EXPECT_TRUE(FileExists(to_file)); 377 EXPECT_TRUE(FileExists(to_file));
378 EXPECT_EQ(1020, GetSize(to_file)); 378 EXPECT_EQ(1020, GetSize(to_file));
379 } 379 }
380 380
381 } // namespace content 381 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/fileapi/local_file_stream_writer_unittest.cc ('k') | content/browser/fileapi/native_file_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698