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

Unified Diff: components/network_hints/renderer/dns_prefetch_queue_unittest.cc

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more 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
Index: components/network_hints/renderer/dns_prefetch_queue_unittest.cc
diff --git a/components/network_hints/renderer/dns_prefetch_queue_unittest.cc b/components/network_hints/renderer/dns_prefetch_queue_unittest.cc
index cb808c1eeba78e87ac1f92bc939055cfdb1ee8fd..4e8f3ae5e473ea06cb1a50f89827154f836f1cda 100644
--- a/components/network_hints/renderer/dns_prefetch_queue_unittest.cc
+++ b/components/network_hints/renderer/dns_prefetch_queue_unittest.cc
@@ -2,8 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <stddef.h>
+#include <stdint.h>
+
#include <sstream>
+#include "base/macros.h"
#include "components/network_hints/renderer/dns_prefetch_queue.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -19,8 +23,9 @@ class DnsQueueTest : public testing::Test {
// value in sync with the Push value.
class DnsQueueSequentialTester {
public:
- DnsQueueSequentialTester(DnsQueue& buffer, int32 read_counter = 0,
- int32 write_counter = 0);
+ DnsQueueSequentialTester(DnsQueue& buffer,
+ int32_t read_counter = 0,
+ int32_t write_counter = 0);
// Return of false means buffer was full, or would not take entry.
bool Push(void); // Push the string value of next number.
@@ -30,18 +35,17 @@ class DnsQueueSequentialTester {
private:
DnsQueue* buffer_;
- int32 read_counter_; // expected value of next read string.
- int32 write_counter_; // Numerical value to write next string.
+ int32_t read_counter_; // expected value of next read string.
+ int32_t write_counter_; // Numerical value to write next string.
DISALLOW_COPY_AND_ASSIGN(DnsQueueSequentialTester);
};
-
-DnsQueueSequentialTester::DnsQueueSequentialTester(
- DnsQueue& buffer, int32 read_counter, int32 write_counter)
+DnsQueueSequentialTester::DnsQueueSequentialTester(DnsQueue& buffer,
+ int32_t read_counter,
+ int32_t write_counter)
: buffer_(&buffer),
read_counter_(read_counter),
- write_counter_(write_counter) {
-}
+ write_counter_(write_counter) {}
bool DnsQueueSequentialTester::Push(void) {
std::ostringstream value;
« no previous file with comments | « components/network_hints/renderer/dns_prefetch_queue.h ('k') | components/network_hints/renderer/renderer_dns_prefetch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698