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

Side by Side Diff: components/rappor/log_uploader_unittest.cc

Issue 188103004: C++ Readability review for holte (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added header files Created 6 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Change for readability
6
5 #include "components/rappor/log_uploader.h" 7 #include "components/rappor/log_uploader.h"
6 8
7 #include "base/message_loop/message_loop_proxy.h" 9 #include "base/message_loop/message_loop_proxy.h"
8 #include "net/url_request/test_url_fetcher_factory.h" 10 #include "net/url_request/test_url_fetcher_factory.h"
9 #include "net/url_request/url_request_test_util.h" 11 #include "net/url_request/url_request_test_util.h"
10 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
11 13
12 namespace rappor { 14 namespace rappor {
13 15
14 namespace { 16 namespace {
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 // Backoff until the maximum is reached. 146 // Backoff until the maximum is reached.
145 while (next > current) { 147 while (next > current) {
146 current = next; 148 current = next;
147 next = TestLogUploader::BackOff(current); 149 next = TestLogUploader::BackOff(current);
148 } 150 }
149 // Maximum backoff should have been reached. 151 // Maximum backoff should have been reached.
150 EXPECT_EQ(next, current); 152 EXPECT_EQ(next, current);
151 } 153 }
152 154
153 } // namespace rappor 155 } // namespace rappor
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698