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

Unified Diff: components/metrics/metrics_state_manager_unittest.cc

Issue 1548113002: Switch to standard integer types in components/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn 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
« no previous file with comments | « components/metrics/metrics_state_manager.cc ('k') | components/metrics/net/net_metrics_log_uploader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics/metrics_state_manager_unittest.cc
diff --git a/components/metrics/metrics_state_manager_unittest.cc b/components/metrics/metrics_state_manager_unittest.cc
index 140cc1c71be705532ecc55f0feb2dfcf99bca36d..f8ab8daba3c851121e6e6f9df7f51ac7d555ebc8 100644
--- a/components/metrics/metrics_state_manager_unittest.cc
+++ b/components/metrics/metrics_state_manager_unittest.cc
@@ -5,10 +5,13 @@
#include "components/metrics/metrics_state_manager.h"
#include <ctype.h>
+#include <stddef.h>
+#include <stdint.h>
#include <string>
#include "base/bind.h"
#include "base/command_line.h"
+#include "base/macros.h"
#include "base/prefs/testing_pref_service.h"
#include "components/metrics/client_info.h"
#include "components/metrics/metrics_pref_names.h"
@@ -218,10 +221,10 @@ TEST_F(MetricsStateManagerTest, ResetMetricsIDs) {
}
TEST_F(MetricsStateManagerTest, ForceClientIdCreation) {
- const int64 kFakeInstallationDate = 12345;
+ const int64_t kFakeInstallationDate = 12345;
prefs_.SetInt64(prefs::kInstallDate, kFakeInstallationDate);
- const int64 test_begin_time = base::Time::Now().ToTimeT();
+ const int64_t test_begin_time = base::Time::Now().ToTimeT();
// Holds ClientInfo from previous scoped test for extra checks.
scoped_ptr<ClientInfo> previous_client_info;
@@ -281,8 +284,8 @@ TEST_F(MetricsStateManagerTest, ForceClientIdCreation) {
EXPECT_EQ(previous_client_info->client_id, state_manager->client_id());
}
- const int64 kBackupInstallationDate = 1111;
- const int64 kBackupReportingEnabledDate = 2222;
+ const int64_t kBackupInstallationDate = 1111;
+ const int64_t kBackupReportingEnabledDate = 2222;
const char kBackupClientId[] = "AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE";
fake_client_info_backup_.reset(new ClientInfo);
fake_client_info_backup_->client_id = kBackupClientId;
« no previous file with comments | « components/metrics/metrics_state_manager.cc ('k') | components/metrics/net/net_metrics_log_uploader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698