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

Unified Diff: components/copresence/handlers/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/directive_handler_unittest.cc
diff --git a/components/copresence/handlers/directive_handler_unittest.cc b/components/copresence/handlers/directive_handler_unittest.cc
index a18c77598eb48b35cb6b8fc5ceead3115047f2e5..7f7b4641f1ed398242e8ab0604f7701a8a3cc89b 100644
--- a/components/copresence/handlers/directive_handler_unittest.cc
+++ b/components/copresence/handlers/directive_handler_unittest.cc
@@ -2,6 +2,8 @@
// 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>
@@ -18,9 +20,9 @@ using testing::IsEmpty;
namespace {
-const int64 kMaxUnlabeledTtl = 60000; // 1 minute
-const int64 kExcessiveUnlabeledTtl = 120000; // 2 minutes
-const int64 kDefaultTtl = 600000; // 10 minutes
+const int64_t kMaxUnlabeledTtl = 60000; // 1 minute
+const int64_t kExcessiveUnlabeledTtl = 120000; // 2 minutes
+const int64_t kDefaultTtl = 600000; // 10 minutes
} // namespace
@@ -29,7 +31,7 @@ namespace copresence {
const Directive CreateDirective(const std::string& publish_id,
const std::string& subscribe_id,
const std::string& token,
- int64 ttl_ms) {
+ int64_t ttl_ms) {
Directive directive;
directive.set_instruction_type(TOKEN);
directive.set_published_message_id(publish_id);
@@ -83,9 +85,7 @@ class FakeAudioDirectiveHandler final : public AudioDirectiveHandler {
return added_tokens_;
}
- const std::vector<int64>& added_ttls() const {
- return added_ttls_;
- }
+ const std::vector<int64_t>& added_ttls() const { return added_ttls_; }
const std::vector<std::string>& removed_operations() const {
return removed_operations_;
@@ -93,7 +93,7 @@ class FakeAudioDirectiveHandler final : public AudioDirectiveHandler {
private:
std::vector<std::string> added_tokens_;
- std::vector<int64> added_ttls_;
+ std::vector<int64_t> added_ttls_;
std::vector<std::string> removed_operations_;
};
« no previous file with comments | « components/copresence/handlers/directive_handler_impl.h ('k') | components/copresence/handlers/gcm_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698