| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
| 8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
| 9 #include "google_apis/gaia/gaia_constants.h" | 9 #include "google_apis/gaia/gaia_constants.h" |
| 10 #include "google_apis/gaia/google_service_auth_error.h" | 10 #include "google_apis/gaia/google_service_auth_error.h" |
| 11 #include "google_apis/gaia/oauth2_access_token_consumer.h" | 11 #include "google_apis/gaia/oauth2_access_token_consumer.h" |
| 12 #include "google_apis/gaia/oauth2_access_token_fetcher.h" | |
| 13 #include "google_apis/gaia/oauth2_token_service.h" | 12 #include "google_apis/gaia/oauth2_token_service.h" |
| 14 #include "google_apis/gaia/oauth2_token_service_test_util.h" | 13 #include "google_apis/gaia/oauth2_token_service_test_util.h" |
| 15 #include "net/http/http_status_code.h" | 14 #include "net/http/http_status_code.h" |
| 16 #include "net/url_request/test_url_fetcher_factory.h" | 15 #include "net/url_request/test_url_fetcher_factory.h" |
| 17 #include "net/url_request/url_fetcher_delegate.h" | 16 #include "net/url_request/url_fetcher_delegate.h" |
| 18 #include "net/url_request/url_request_test_util.h" | 17 #include "net/url_request/url_request_test_util.h" |
| 19 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
| 20 | 19 |
| 21 // A testing consumer that retries on error. | 20 // A testing consumer that retries on error. |
| 22 class RetryingTestingOAuth2TokenServiceConsumer | 21 class RetryingTestingOAuth2TokenServiceConsumer |
| (...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 } else if (i < j) { | 629 } else if (i < j) { |
| 631 EXPECT_TRUE(params[i] < params[j]) << " i=" << i << ", j=" << j; | 630 EXPECT_TRUE(params[i] < params[j]) << " i=" << i << ", j=" << j; |
| 632 EXPECT_FALSE(params[j] < params[i]) << " i=" << i << ", j=" << j; | 631 EXPECT_FALSE(params[j] < params[i]) << " i=" << i << ", j=" << j; |
| 633 } else { | 632 } else { |
| 634 EXPECT_TRUE(params[j] < params[i]) << " i=" << i << ", j=" << j; | 633 EXPECT_TRUE(params[j] < params[i]) << " i=" << i << ", j=" << j; |
| 635 EXPECT_FALSE(params[i] < params[j]) << " i=" << i << ", j=" << j; | 634 EXPECT_FALSE(params[i] < params[j]) << " i=" << i << ", j=" << j; |
| 636 } | 635 } |
| 637 } | 636 } |
| 638 } | 637 } |
| 639 } | 638 } |
| OLD | NEW |