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

Unified Diff: talk/session/media/currentspeakermonitor_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/session/media/currentspeakermonitor.cc ('k') | talk/session/media/externalhmac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: talk/session/media/currentspeakermonitor_unittest.cc
diff --git a/talk/session/media/currentspeakermonitor_unittest.cc b/talk/session/media/currentspeakermonitor_unittest.cc
index 6a99973f96994936bcfc49543f92e4c9cb01ab5e..7970cea18b398f1798e3dae2c909a94f6ae0e4e7 100644
--- a/talk/session/media/currentspeakermonitor_unittest.cc
+++ b/talk/session/media/currentspeakermonitor_unittest.cc
@@ -32,15 +32,15 @@
namespace cricket {
-static const uint32 kSsrc1 = 1001;
-static const uint32 kSsrc2 = 1002;
-static const uint32 kMinTimeBetweenSwitches = 10;
+static const uint32_t kSsrc1 = 1001;
+static const uint32_t kSsrc2 = 1002;
+static const uint32_t kMinTimeBetweenSwitches = 10;
// Due to limited system clock resolution, the CurrentSpeakerMonitor may
// actually require more or less time between switches than that specified
// in the call to set_min_time_between_switches. To be safe, we sleep for
// 90 ms more than the min time between switches before checking for a switch.
// I am assuming system clocks do not have a coarser resolution than 90 ms.
-static const uint32 kSleepTimeBetweenSwitches = 100;
+static const uint32_t kSleepTimeBetweenSwitches = 100;
class CurrentSpeakerMonitorTest : public testing::Test,
public sigslot::has_slots<> {
@@ -68,9 +68,9 @@ class CurrentSpeakerMonitorTest : public testing::Test,
AudioSourceContext source_;
CurrentSpeakerMonitor* monitor_;
int num_changes_;
- uint32 current_speaker_;
+ uint32_t current_speaker_;
- void OnUpdate(CurrentSpeakerMonitor* monitor, uint32 current_speaker) {
+ void OnUpdate(CurrentSpeakerMonitor* monitor, uint32_t current_speaker) {
current_speaker_ = current_speaker;
num_changes_++;
}
« no previous file with comments | « talk/session/media/currentspeakermonitor.cc ('k') | talk/session/media/externalhmac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698