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

Unified Diff: media/cast/test/utility/udp_proxy_main.cc

Issue 1534273002: Switch to standard integer types in media/. (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: media/cast/test/utility/udp_proxy_main.cc
diff --git a/media/cast/test/utility/udp_proxy_main.cc b/media/cast/test/utility/udp_proxy_main.cc
index 439b079747786ca9e6d42be3f60e8875dfc0363f..8c2e7cf42eb5cecafa934957096121488b1f8d85 100644
--- a/media/cast/test/utility/udp_proxy_main.cc
+++ b/media/cast/test/utility/udp_proxy_main.cc
@@ -48,16 +48,16 @@ class ByteCounter {
return packets / time_range().InSecondsF();
}
- void Increment(uint64 x) {
+ void Increment(uint64_t x) {
bytes_ += x;
packets_ ++;
}
private:
- uint64 bytes_;
- uint64 packets_;
- std::deque<uint64> byte_data_;
- std::deque<uint64> packet_data_;
+ uint64_t bytes_;
+ uint64_t packets_;
+ std::deque<uint64_t> byte_data_;
+ std::deque<uint64_t> packet_data_;
std::deque<base::TimeTicks> time_data_;
};
@@ -161,9 +161,9 @@ int main(int argc, char** argv) {
exit(1);
}
net::IPEndPoint remote_endpoint(remote_ip_number,
- static_cast<uint16>(remote_port));
+ static_cast<uint16_t>(remote_port));
net::IPEndPoint local_endpoint(local_ip_number,
- static_cast<uint16>(local_port));
+ static_cast<uint16_t>(local_port));
scoped_ptr<media::cast::test::PacketPipe> in_pipe, out_pipe;
scoped_ptr<media::cast::test::InterruptedPoissonProcess> ipp(
media::cast::test::DefaultInterruptedPoissonProcess());

Powered by Google App Engine
This is Rietveld 408576698