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

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

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 12 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 <limits> 7 #include <limits>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/bind_helpers.h" 12 #include "base/bind_helpers.h"
13 #include "base/files/scoped_temp_dir.h" 13 #include "base/files/scoped_temp_dir.h"
14 #include "base/location.h" 14 #include "base/location.h"
15 #include "base/macros.h"
15 #include "base/memory/weak_ptr.h" 16 #include "base/memory/weak_ptr.h"
16 #include "base/run_loop.h" 17 #include "base/run_loop.h"
17 #include "base/single_thread_task_runner.h" 18 #include "base/single_thread_task_runner.h"
18 #include "base/thread_task_runner_handle.h" 19 #include "base/thread_task_runner_handle.h"
19 #include "content/public/test/async_file_test_helper.h" 20 #include "content/public/test/async_file_test_helper.h"
20 #include "content/public/test/test_file_system_context.h" 21 #include "content/public/test/test_file_system_context.h"
21 #include "net/base/io_buffer.h" 22 #include "net/base/io_buffer.h"
22 #include "net/base/request_priority.h" 23 #include "net/base/request_priority.h"
23 #include "net/url_request/url_request.h" 24 #include "net/url_request/url_request.h"
24 #include "net/url_request/url_request_context.h" 25 #include "net/url_request/url_request_context.h"
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 file_writer_delegate_.reset(); 494 file_writer_delegate_.reset();
494 495
495 EXPECT_EQ(pre_write_usage + allowed_growth, usage()); 496 EXPECT_EQ(pre_write_usage + allowed_growth, usage());
496 EXPECT_EQ(GetFileSizeOnDisk("test"), usage()); 497 EXPECT_EQ(GetFileSizeOnDisk("test"), usage());
497 EXPECT_EQ(kOverlap + allowed_growth, result.bytes_written()); 498 EXPECT_EQ(kOverlap + allowed_growth, result.bytes_written());
498 EXPECT_EQ(base::File::FILE_ERROR_NO_SPACE, result.status()); 499 EXPECT_EQ(base::File::FILE_ERROR_NO_SPACE, result.status());
499 } 500 }
500 } 501 }
501 502
502 } // namespace content 503 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/fileapi/file_system_usage_cache_unittest.cc ('k') | content/browser/fileapi/fileapi_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698