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

Side by Side Diff: webkit/fileapi/file_writer_delegate_unittest.cc

Issue 12388061: Cleanup: header cleanup in webkit/fileapi/local_file_system_operation.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
« no previous file with comments | « no previous file | webkit/fileapi/isolated_mount_point_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include <vector> 6 #include <vector>
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/files/scoped_temp_dir.h" 10 #include "base/files/scoped_temp_dir.h"
11 #include "base/message_loop.h" 11 #include "base/message_loop.h"
12 #include "googleurl/src/gurl.h" 12 #include "googleurl/src/gurl.h"
13 #include "net/base/io_buffer.h" 13 #include "net/base/io_buffer.h"
14 #include "net/url_request/url_request.h" 14 #include "net/url_request/url_request.h"
15 #include "net/url_request/url_request_context.h" 15 #include "net/url_request/url_request_context.h"
16 #include "net/url_request/url_request_job.h" 16 #include "net/url_request/url_request_job.h"
17 #include "net/url_request/url_request_status.h" 17 #include "net/url_request/url_request_status.h"
18 #include "testing/platform_test.h" 18 #include "testing/platform_test.h"
19 #include "webkit/fileapi/file_system_context.h" 19 #include "webkit/fileapi/file_system_context.h"
20 #include "webkit/fileapi/file_system_file_util.h"
21 #include "webkit/fileapi/file_system_operation_context.h"
20 #include "webkit/fileapi/file_writer_delegate.h" 22 #include "webkit/fileapi/file_writer_delegate.h"
21 #include "webkit/fileapi/local_file_system_operation.h" 23 #include "webkit/fileapi/local_file_system_operation.h"
22 #include "webkit/fileapi/local_file_system_test_helper.h" 24 #include "webkit/fileapi/local_file_system_test_helper.h"
23 #include "webkit/fileapi/sandbox_file_stream_writer.h" 25 #include "webkit/fileapi/sandbox_file_stream_writer.h"
24 #include "webkit/quota/quota_manager.h" 26 #include "webkit/quota/quota_manager.h"
25 27
26 namespace fileapi { 28 namespace fileapi {
27 29
28 namespace { 30 namespace {
29 31
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 file_writer_delegate_.reset(); 460 file_writer_delegate_.reset();
459 461
460 EXPECT_EQ(pre_write_usage + allowed_growth, 462 EXPECT_EQ(pre_write_usage + allowed_growth,
461 test_helper_.GetCachedOriginUsage()); 463 test_helper_.GetCachedOriginUsage());
462 EXPECT_EQ(ComputeCurrentOriginUsage(), test_helper_.GetCachedOriginUsage()); 464 EXPECT_EQ(ComputeCurrentOriginUsage(), test_helper_.GetCachedOriginUsage());
463 EXPECT_EQ(kOverlap + allowed_growth, result_->bytes_written()); 465 EXPECT_EQ(kOverlap + allowed_growth, result_->bytes_written());
464 EXPECT_EQ(base::PLATFORM_FILE_ERROR_NO_SPACE, result_->status()); 466 EXPECT_EQ(base::PLATFORM_FILE_ERROR_NO_SPACE, result_->status());
465 } 467 }
466 468
467 } // namespace fileapi 469 } // namespace fileapi
OLDNEW
« no previous file with comments | « no previous file | webkit/fileapi/isolated_mount_point_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698