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

Unified Diff: net/disk_cache/disk_cache_test_base.h

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/disk_cache/disk_cache.h ('k') | net/disk_cache/disk_cache_test_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/disk_cache_test_base.h
diff --git a/net/disk_cache/disk_cache_test_base.h b/net/disk_cache/disk_cache_test_base.h
index c6911a72870d12af0e51feb7856e992934b6e8ec..713bba0e6a2ab64ff27763a0af792343d4df086f 100644
--- a/net/disk_cache/disk_cache_test_base.h
+++ b/net/disk_cache/disk_cache_test_base.h
@@ -5,9 +5,11 @@
#ifndef NET_DISK_CACHE_DISK_CACHE_TEST_BASE_H_
#define NET_DISK_CACHE_DISK_CACHE_TEST_BASE_H_
-#include "base/basictypes.h"
+#include <stdint.h>
+
#include "base/files/file_path.h"
#include "base/files/scoped_temp_dir.h"
+#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/threading/thread.h"
#include "net/base/cache_type.h"
@@ -72,7 +74,7 @@ class DiskCacheTestWithCache : public DiskCacheTest {
DiskCacheTestWithCache();
~DiskCacheTestWithCache() override;
- void CreateBackend(uint32 flags, base::Thread* thread);
+ void CreateBackend(uint32_t flags, base::Thread* thread);
void InitCache();
void SimulateCrash();
@@ -86,9 +88,7 @@ class DiskCacheTestWithCache : public DiskCacheTest {
simple_cache_mode_ = true;
}
- void SetMask(uint32 mask) {
- mask_ = mask;
- }
+ void SetMask(uint32_t mask) { mask_ = mask; }
void SetMaxSize(int size);
@@ -137,10 +137,14 @@ class DiskCacheTestWithCache : public DiskCacheTest {
net::IOBuffer* buf, int len);
int WriteData(disk_cache::Entry* entry, int index, int offset,
net::IOBuffer* buf, int len, bool truncate);
- int ReadSparseData(disk_cache::Entry* entry, int64 offset, net::IOBuffer* buf,
+ int ReadSparseData(disk_cache::Entry* entry,
+ int64_t offset,
+ net::IOBuffer* buf,
int len);
- int WriteSparseData(disk_cache::Entry* entry, int64 offset,
- net::IOBuffer* buf, int len);
+ int WriteSparseData(disk_cache::Entry* entry,
+ int64_t offset,
+ net::IOBuffer* buf,
+ int len);
// Asks the cache to trim an entry. If |empty| is true, the whole cache is
// deleted.
@@ -164,7 +168,7 @@ class DiskCacheTestWithCache : public DiskCacheTest {
disk_cache::SimpleBackendImpl* simple_cache_impl_;
disk_cache::MemBackendImpl* mem_cache_;
- uint32 mask_;
+ uint32_t mask_;
int size_;
net::CacheType type_;
bool memory_only_;
« no previous file with comments | « net/disk_cache/disk_cache.h ('k') | net/disk_cache/disk_cache_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698