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

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: Fix struct/class declaration 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
« no previous file with comments | « components/rappor/log_uploader.cc ('k') | components/rappor/rappor_metric.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "components/rappor/log_uploader.h" 5 #include "components/rappor/log_uploader.h"
6 6
7 #include "base/compiler_specific.h"
7 #include "base/message_loop/message_loop_proxy.h" 8 #include "base/message_loop/message_loop_proxy.h"
8 #include "net/url_request/test_url_fetcher_factory.h" 9 #include "net/url_request/test_url_fetcher_factory.h"
9 #include "net/url_request/url_request_test_util.h" 10 #include "net/url_request/url_request_test_util.h"
10 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
11 12
12 namespace rappor { 13 namespace rappor {
13 14
14 namespace { 15 namespace {
15 16
16 const char kTestServerURL[] = "http://a.com/"; 17 const char kTestServerURL[] = "http://a.com/";
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 // Backoff until the maximum is reached. 145 // Backoff until the maximum is reached.
145 while (next > current) { 146 while (next > current) {
146 current = next; 147 current = next;
147 next = TestLogUploader::BackOff(current); 148 next = TestLogUploader::BackOff(current);
148 } 149 }
149 // Maximum backoff should have been reached. 150 // Maximum backoff should have been reached.
150 EXPECT_EQ(next, current); 151 EXPECT_EQ(next, current);
151 } 152 }
152 153
153 } // namespace rappor 154 } // namespace rappor
OLDNEW
« no previous file with comments | « components/rappor/log_uploader.cc ('k') | components/rappor/rappor_metric.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698