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

Unified Diff: components/policy/core/browser/url_blacklist_manager_unittest.cc

Issue 1543423002: Switch to standard integer types in components/policy/. (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/policy/core/browser/url_blacklist_manager_unittest.cc
diff --git a/components/policy/core/browser/url_blacklist_manager_unittest.cc b/components/policy/core/browser/url_blacklist_manager_unittest.cc
index b80d5f583673315b2448b3cb4c95c92204e63191..734ae217b7a6683a845abf4c1164ef30bbe540b2 100644
--- a/components/policy/core/browser/url_blacklist_manager_unittest.cc
+++ b/components/policy/core/browser/url_blacklist_manager_unittest.cc
@@ -4,11 +4,13 @@
#include "components/policy/core/browser/url_blacklist_manager.h"
+#include <stdint.h>
+
#include <ostream>
-#include "base/basictypes.h"
#include "base/bind.h"
#include "base/callback.h"
+#include "base/macros.h"
#include "base/message_loop/message_loop.h"
#include "base/prefs/pref_registry_simple.h"
#include "base/prefs/testing_pref_service.h"
@@ -107,11 +109,18 @@ class URLBlacklistManagerTest : public testing::Test {
// Parameters for the FilterToComponents test.
struct FilterTestParams {
public:
- FilterTestParams(const std::string& filter, const std::string& scheme,
- const std::string& host, bool match_subdomains, uint16 port,
+ FilterTestParams(const std::string& filter,
+ const std::string& scheme,
+ const std::string& host,
+ bool match_subdomains,
+ uint16_t port,
const std::string& path)
- : filter_(filter), scheme_(scheme), host_(host),
- match_subdomains_(match_subdomains), port_(port), path_(path) {}
+ : filter_(filter),
+ scheme_(scheme),
+ host_(host),
+ match_subdomains_(match_subdomains),
+ port_(port),
+ path_(path) {}
FilterTestParams(const FilterTestParams& params)
: filter_(params.filter_), scheme_(params.scheme_), host_(params.host_),
@@ -132,7 +141,7 @@ struct FilterTestParams {
const std::string& scheme() const { return scheme_; }
const std::string& host() const { return host_; }
bool match_subdomains() const { return match_subdomains_; }
- uint16 port() const { return port_; }
+ uint16_t port() const { return port_; }
const std::string& path() const { return path_; }
private:
@@ -140,7 +149,7 @@ struct FilterTestParams {
std::string scheme_;
std::string host_;
bool match_subdomains_;
- uint16 port_;
+ uint16_t port_;
std::string path_;
};
@@ -166,7 +175,7 @@ TEST_P(URLBlacklistFilterToComponentsTest, FilterToComponents) {
std::string scheme;
std::string host;
bool match_subdomains = true;
- uint16 port = 42;
+ uint16_t port = 42;
std::string path;
URLBlacklist::FilterToComponents(GetSegmentURLCallback(),
« no previous file with comments | « components/policy/core/browser/url_blacklist_manager.cc ('k') | components/policy/core/browser/url_blacklist_policy_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698