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

Unified Diff: net/disk_cache/backend_unittest.cc

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/der/parser.h ('k') | net/disk_cache/blockfile/addr_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/backend_unittest.cc
diff --git a/net/disk_cache/backend_unittest.cc b/net/disk_cache/backend_unittest.cc
index 7bb6046509ce876734210bbe5180dacbb5d0d29e..2d36def0be145799bb384469b5a5507d97da3590 100644
--- a/net/disk_cache/backend_unittest.cc
+++ b/net/disk_cache/backend_unittest.cc
@@ -4,7 +4,6 @@
#include <stdint.h>
-#include "base/basictypes.h"
#include "base/files/file_util.h"
#include "base/metrics/field_trial.h"
#include "base/run_loop.h"
@@ -521,7 +520,7 @@ TEST_F(DiskCacheBackendTest, ExternalFiles) {
// Tests that we deal with file-level pending operations at destruction time.
void DiskCacheBackendTest::BackendShutdownWithPendingFileIO(bool fast) {
ASSERT_TRUE(CleanupCacheDir());
- uint32 flags = disk_cache::kNoBuffering;
+ uint32_t flags = disk_cache::kNoBuffering;
if (!fast)
flags |= disk_cache::kNoRandom;
@@ -623,7 +622,7 @@ void DiskCacheBackendTest::BackendShutdownWithPendingIO(bool fast) {
ASSERT_TRUE(cache_thread.StartWithOptions(
base::Thread::Options(base::MessageLoop::TYPE_IO, 0)));
- uint32 flags = disk_cache::kNoBuffering;
+ uint32_t flags = disk_cache::kNoBuffering;
if (!fast)
flags |= disk_cache::kNoRandom;
@@ -1774,7 +1773,7 @@ void DiskCacheBackendTest::BackendTransaction(const std::string& name,
ASSERT_TRUE(CopyTestCache(name));
DisableFirstCleanup();
- uint32 mask;
+ uint32_t mask;
if (load) {
mask = 0xf;
SetMaxSize(0x100000);
@@ -3075,7 +3074,7 @@ TEST_F(DiskCacheTest, MultipleInstances) {
// Test the six regions of the curve that determines the max cache size.
TEST_F(DiskCacheTest, AutomaticMaxSize) {
using disk_cache::kDefaultCacheSize;
- int64 large_size = kDefaultCacheSize;
+ int64_t large_size = kDefaultCacheSize;
// Region 1: expected = available * 0.8
EXPECT_EQ((kDefaultCacheSize - 1) * 8 / 10,
@@ -3108,7 +3107,7 @@ TEST_F(DiskCacheTest, AutomaticMaxSize) {
disk_cache::PreferredCacheSize(large_size * 250 - 1));
// Region 5: expected = available * 0.1
- int64 largest_size = kDefaultCacheSize * 4;
+ int64_t largest_size = kDefaultCacheSize * 4;
EXPECT_EQ(kDefaultCacheSize * 25 / 10,
disk_cache::PreferredCacheSize(large_size * 250));
EXPECT_EQ(largest_size - 1,
« no previous file with comments | « net/der/parser.h ('k') | net/disk_cache/blockfile/addr_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698