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

Unified Diff: chrome/browser/sync/test/integration/two_client_passwords_sync_test.cc

Issue 1499423004: Remove kint32max. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@kint9
Patch Set: rebase 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: chrome/browser/sync/test/integration/two_client_passwords_sync_test.cc
diff --git a/chrome/browser/sync/test/integration/two_client_passwords_sync_test.cc b/chrome/browser/sync/test/integration/two_client_passwords_sync_test.cc
index ad71e7362da5686f60cf8eaeebfa90356e4477eb..9f2519a37eb0659e3d904184d9e853ab27d2b989 100644
--- a/chrome/browser/sync/test/integration/two_client_passwords_sync_test.cc
+++ b/chrome/browser/sync/test/integration/two_client_passwords_sync_test.cc
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <stdint.h>
+
+#include <limits>
+
#include "base/guid.h"
#include "base/hash.h"
#include "base/rand_util.h"
@@ -220,8 +224,8 @@ IN_PROC_BROWSER_TEST_F(TwoClientPasswordsSyncTest, E2E_ONLY(TwoClientAddPass)) {
// Add one new password per profile. A unique form is created for each to
// prevent them from overwriting each other.
for (int i = 0; i < num_clients(); ++i) {
- AddLogin(GetPasswordStore(i),
- CreateTestPasswordForm(base::RandInt(0, kint32max)));
+ AddLogin(GetPasswordStore(i), CreateTestPasswordForm(base::RandInt(
+ 0, std::numeric_limits<int32_t>::max())));
}
// Blocks and waits for password forms in all profiles to match.
« no previous file with comments | « chrome/browser/extensions/api/messaging/message_service.cc ('k') | chrome/browser/ui/panels/panel_drag_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698