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

Unified Diff: net/url_request/url_request_throttler_simulation_unittest.cc

Issue 13145003: Rewrite std::string("") to std::string(), Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ugh Created 7 years, 8 months 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 | « net/url_request/url_fetcher_impl_unittest.cc ('k') | net/url_request/url_request_throttler_test_support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_throttler_simulation_unittest.cc
diff --git a/net/url_request/url_request_throttler_simulation_unittest.cc b/net/url_request/url_request_throttler_simulation_unittest.cc
index 3a5a39979bdbe513be21e6c2adb0dc59c4df4652..cbb8be874e450c28c594025d70912656e8cca4bc 100644
--- a/net/url_request/url_request_throttler_simulation_unittest.cc
+++ b/net/url_request/url_request_throttler_simulation_unittest.cc
@@ -297,11 +297,9 @@ class Server : public DiscreteTimeSimulation::Actor {
// Mock throttler entry used by Requester class.
class MockURLRequestThrottlerEntry : public URLRequestThrottlerEntry {
public:
- explicit MockURLRequestThrottlerEntry(
- URLRequestThrottlerManager* manager)
- : URLRequestThrottlerEntry(manager, ""),
- mock_backoff_entry_(&backoff_policy_) {
- }
+ explicit MockURLRequestThrottlerEntry(URLRequestThrottlerManager* manager)
+ : URLRequestThrottlerEntry(manager, std::string()),
+ mock_backoff_entry_(&backoff_policy_) {}
virtual const BackoffEntry* GetBackoffEntry() const OVERRIDE {
return &mock_backoff_entry_;
@@ -433,7 +431,7 @@ class Requester : public DiscreteTimeSimulation::Actor {
if (!throttler_entry_->ShouldRejectRequest(server_->mock_request())) {
int status_code = server_->HandleRequest();
MockURLRequestThrottlerHeaderAdapter response_headers(status_code);
- throttler_entry_->UpdateWithResponse("", &response_headers);
+ throttler_entry_->UpdateWithResponse(std::string(), &response_headers);
if (status_code == 200) {
if (results_)
« no previous file with comments | « net/url_request/url_fetcher_impl_unittest.cc ('k') | net/url_request/url_request_throttler_test_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698