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

Unified Diff: components/copresence/handlers/audio/audio_directive_handler_unittest.cc

Issue 1546143002: Switch to standard integer types in components/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/copresence/handlers/audio/audio_directive_handler_unittest.cc
diff --git a/components/copresence/handlers/audio/audio_directive_handler_unittest.cc b/components/copresence/handlers/audio/audio_directive_handler_unittest.cc
index 24da3ca52d6aa69eeba42b9076e52325c8330a50..4cb082e488308047a483cb426d88edc513ec456e 100644
--- a/components/copresence/handlers/audio/audio_directive_handler_unittest.cc
+++ b/components/copresence/handlers/audio/audio_directive_handler_unittest.cc
@@ -2,10 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <stdint.h>
+
#include <string>
#include <vector>
#include "base/bind.h"
+#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
#include "base/test/simple_test_tick_clock.h"
@@ -29,7 +32,7 @@ namespace {
const Directive CreateDirective(TokenInstructionType type,
bool audible,
- int64 ttl) {
+ int64_t ttl) {
Directive directive;
directive.mutable_token_instruction()->set_token_instruction_type(type);
directive.mutable_token_instruction()->set_token_id("token");
@@ -89,7 +92,7 @@ class AudioDirectiveHandlerTest : public testing::Test {
};
TEST_F(AudioDirectiveHandlerTest, Basic) {
- const int64 kTtl = 10;
+ const int64_t kTtl = 10;
directive_handler_->AddInstruction(CreateDirective(TRANSMIT, true, kTtl),
"op_id1");
directive_handler_->AddInstruction(CreateDirective(TRANSMIT, false, kTtl),

Powered by Google App Engine
This is Rietveld 408576698