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: webkit/fileapi/local_file_system_operation_write_unittest.cc

Issue 11359217: Move scoped_temp_dir from base to base/files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 <vector> 5 #include <vector>
6 6
7 #include "base/files/scoped_temp_dir.h"
7 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
8 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
9 #include "base/message_loop.h" 10 #include "base/message_loop.h"
10 #include "base/message_loop_proxy.h" 11 #include "base/message_loop_proxy.h"
11 #include "base/scoped_temp_dir.h"
12 #include "googleurl/src/gurl.h" 12 #include "googleurl/src/gurl.h"
13 #include "net/url_request/url_request.h" 13 #include "net/url_request/url_request.h"
14 #include "net/url_request/url_request_context.h" 14 #include "net/url_request/url_request_context.h"
15 #include "net/url_request/url_request_job.h" 15 #include "net/url_request/url_request_job.h"
16 #include "net/url_request/url_request_job_factory_impl.h" 16 #include "net/url_request/url_request_job_factory_impl.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 #include "webkit/blob/blob_data.h" 18 #include "webkit/blob/blob_data.h"
19 #include "webkit/blob/blob_storage_controller.h" 19 #include "webkit/blob/blob_storage_controller.h"
20 #include "webkit/blob/blob_url_request_job.h" 20 #include "webkit/blob/blob_url_request_job.h"
21 #include "webkit/blob/mock_blob_url_request_context.h" 21 #include "webkit/blob/mock_blob_url_request_context.h"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 145
146 FileSystemFileUtil* file_util() { 146 FileSystemFileUtil* file_util() {
147 return test_helper_.file_util(); 147 return test_helper_.file_util();
148 } 148 }
149 149
150 scoped_refptr<MockQuotaManager> quota_manager_; 150 scoped_refptr<MockQuotaManager> quota_manager_;
151 LocalFileSystemTestOriginHelper test_helper_; 151 LocalFileSystemTestOriginHelper test_helper_;
152 152
153 MessageLoop loop_; 153 MessageLoop loop_;
154 154
155 ScopedTempDir dir_; 155 base::ScopedTempDir dir_;
156 FilePath virtual_path_; 156 FilePath virtual_path_;
157 157
158 // For post-operation status. 158 // For post-operation status.
159 base::PlatformFileError status_; 159 base::PlatformFileError status_;
160 base::PlatformFileError cancel_status_; 160 base::PlatformFileError cancel_status_;
161 int64 bytes_written_; 161 int64 bytes_written_;
162 bool complete_; 162 bool complete_;
163 163
164 MockBlobURLRequestContext url_request_context_; 164 MockBlobURLRequestContext url_request_context_;
165 165
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 EXPECT_EQ(base::PLATFORM_FILE_ERROR_ABORT, status()); 345 EXPECT_EQ(base::PLATFORM_FILE_ERROR_ABORT, status());
346 EXPECT_EQ(base::PLATFORM_FILE_OK, cancel_status()); 346 EXPECT_EQ(base::PLATFORM_FILE_OK, cancel_status());
347 EXPECT_TRUE(complete()); 347 EXPECT_TRUE(complete());
348 348
349 EXPECT_EQ(0, change_observer()->get_and_reset_modify_file_count()); 349 EXPECT_EQ(0, change_observer()->get_and_reset_modify_file_count());
350 } 350 }
351 351
352 // TODO(ericu,dmikurube,kinuko): Add more tests for cancel cases. 352 // TODO(ericu,dmikurube,kinuko): Add more tests for cancel cases.
353 353
354 } // namespace fileapi 354 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/fileapi/local_file_system_operation_unittest.cc ('k') | webkit/fileapi/local_file_system_quota_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698