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