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

Unified Diff: talk/media/sctp/sctpdataengine_unittest.cc

Issue 1362503003: Use suffixed {uint,int}{8,16,32,64}_t types. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase + revert basictypes.h (to be landed separately just in case of a revert due to unexpected us… Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « talk/media/sctp/sctpdataengine.cc ('k') | talk/media/webrtc/fakewebrtcvideoengine.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: talk/media/sctp/sctpdataengine_unittest.cc
diff --git a/talk/media/sctp/sctpdataengine_unittest.cc b/talk/media/sctp/sctpdataengine_unittest.cc
index c540e7c810ca1dfe445c5124a381d60f0a2a1387..2cd0302f56af67d823730fb1d707cf90e5e8091f 100644
--- a/talk/media/sctp/sctpdataengine_unittest.cc
+++ b/talk/media/sctp/sctpdataengine_unittest.cc
@@ -169,21 +169,19 @@ class SignalChannelClosedObserver : public sigslot::has_slots<> {
channel->SignalStreamClosedRemotely.connect(
this, &SignalChannelClosedObserver::OnStreamClosed);
}
- void OnStreamClosed(uint32 stream) {
- streams_.push_back(stream);
- }
+ void OnStreamClosed(uint32_t stream) { streams_.push_back(stream); }
- int StreamCloseCount(uint32 stream) {
+ int StreamCloseCount(uint32_t stream) {
return std::count(streams_.begin(), streams_.end(), stream);
}
- bool WasStreamClosed(uint32 stream) {
+ bool WasStreamClosed(uint32_t stream) {
return std::find(streams_.begin(), streams_.end(), stream)
!= streams_.end();
}
private:
- std::vector<uint32> streams_;
+ std::vector<uint32_t> streams_;
};
class SignalChannelClosedReopener : public sigslot::has_slots<> {
@@ -292,7 +290,8 @@ class SctpDataMediaChannelTest : public testing::Test,
return channel;
}
- bool SendData(cricket::SctpDataMediaChannel* chan, uint32 ssrc,
+ bool SendData(cricket::SctpDataMediaChannel* chan,
+ uint32_t ssrc,
const std::string& msg,
cricket::SendDataResult* result) {
cricket::SendDataParams params;
@@ -302,8 +301,9 @@ class SctpDataMediaChannelTest : public testing::Test,
&msg[0], msg.length()), result);
}
- bool ReceivedData(const SctpFakeDataReceiver* recv, uint32 ssrc,
- const std::string& msg ) {
+ bool ReceivedData(const SctpFakeDataReceiver* recv,
+ uint32_t ssrc,
+ const std::string& msg) {
return (recv->received() &&
recv->last_params().ssrc == ssrc &&
recv->last_data() == msg);
« no previous file with comments | « talk/media/sctp/sctpdataengine.cc ('k') | talk/media/webrtc/fakewebrtcvideoengine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698