| 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 |
| 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 Loading... |
| 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 |
| OLD | NEW |