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

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

Issue 1475803002: Remove kuint16max. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@kint2
Patch Set: cloud print 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 | « chrome/browser/extensions/webstore_installer.cc ('k') | cloud_print/gcp20/prototype/command_line_reader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/test/integration/sync_test.cc
diff --git a/chrome/browser/sync/test/integration/sync_test.cc b/chrome/browser/sync/test/integration/sync_test.cc
index f200924481a88257e93c35e0abe9dcc9e97293a0..0b5efdb18d0b59a8fff2aec1c1ab5f838b2ebb3d 100644
--- a/chrome/browser/sync/test/integration/sync_test.cc
+++ b/chrome/browser/sync/test/integration/sync_test.cc
@@ -4,9 +4,11 @@
#include "chrome/browser/sync/test/integration/sync_test.h"
+#include <stdint.h>
+
+#include <limits>
#include <vector>
-#include "base/basictypes.h"
#include "base/bind.h"
#include "base/command_line.h"
#include "base/guid.h"
@@ -855,7 +857,7 @@ bool SyncTest::SetUpLocalPythonTestServer() {
LOG(ERROR) << "Could not find valid xmpp_port value";
return false;
}
- if ((xmpp_port <= 0) || (xmpp_port > kuint16max)) {
+ if ((xmpp_port <= 0) || (xmpp_port > std::numeric_limits<uint16_t>::max())) {
LOG(ERROR) << "Invalid xmpp port: " << xmpp_port;
return false;
}
« no previous file with comments | « chrome/browser/extensions/webstore_installer.cc ('k') | cloud_print/gcp20/prototype/command_line_reader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698