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 "base/message_loop/message_loop.h" | 5 #include "base/message_loop/message_loop.h" |
6 #include "base/run_loop.h" | 6 #include "base/run_loop.h" |
7 #include "chrome/browser/chromeos/geolocation/simple_geolocation_provider.h" | 7 #include "chromeos/geolocation/simple_geolocation_provider.h" |
8 #include "net/http/http_response_headers.h" | 8 #include "net/http/http_response_headers.h" |
9 #include "net/http/http_status_code.h" | 9 #include "net/http/http_status_code.h" |
10 #include "net/url_request/test_url_fetcher_factory.h" | 10 #include "net/url_request/test_url_fetcher_factory.h" |
11 #include "net/url_request/url_fetcher_impl.h" | 11 #include "net/url_request/url_fetcher_impl.h" |
12 #include "net/url_request/url_request_status.h" | 12 #include "net/url_request/url_request_status.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 const int kRequestRetryIntervalMilliSeconds = 200; | 17 const int kRequestRetryIntervalMilliSeconds = 200; |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 } | 243 } |
244 if (url_factory.attempts() < expected_retries - 1) { | 244 if (url_factory.attempts() < expected_retries - 1) { |
245 LOG(WARNING) | 245 LOG(WARNING) |
246 << "SimpleGeolocationTest::InvalidResponse: Too little attempts (" | 246 << "SimpleGeolocationTest::InvalidResponse: Too little attempts (" |
247 << url_factory.attempts() << "), greater then " << expected_retries - 1 | 247 << url_factory.attempts() << "), greater then " << expected_retries - 1 |
248 << " expected."; | 248 << " expected."; |
249 } | 249 } |
250 } | 250 } |
251 | 251 |
252 } // namespace chromeos | 252 } // namespace chromeos |
OLD | NEW |