OLD | NEW |
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 |
| 9 #include "base/compiler_specific.h" |
7 #include "base/message_loop/message_loop_proxy.h" | 10 #include "base/message_loop/message_loop_proxy.h" |
8 #include "net/url_request/test_url_fetcher_factory.h" | 11 #include "net/url_request/test_url_fetcher_factory.h" |
9 #include "net/url_request/url_request_test_util.h" | 12 #include "net/url_request/url_request_test_util.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
11 | 14 |
12 namespace rappor { | 15 namespace rappor { |
13 | 16 |
14 namespace { | 17 namespace { |
15 | 18 |
16 const char kTestServerURL[] = "http://a.com/"; | 19 const char kTestServerURL[] = "http://a.com/"; |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 // Backoff until the maximum is reached. | 147 // Backoff until the maximum is reached. |
145 while (next > current) { | 148 while (next > current) { |
146 current = next; | 149 current = next; |
147 next = TestLogUploader::BackOff(current); | 150 next = TestLogUploader::BackOff(current); |
148 } | 151 } |
149 // Maximum backoff should have been reached. | 152 // Maximum backoff should have been reached. |
150 EXPECT_EQ(next, current); | 153 EXPECT_EQ(next, current); |
151 } | 154 } |
152 | 155 |
153 } // namespace rappor | 156 } // namespace rappor |
OLD | NEW |