Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(211)

Side by Side Diff: google_apis/gaia/oauth2_token_service_unittest.cc

Issue 182573003: Extract OAuth2AccessTokenFetcher interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing file. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « google_apis/gaia/oauth2_token_service.cc ('k') | google_apis/google_apis.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « google_apis/gaia/oauth2_token_service.cc ('k') | google_apis/google_apis.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698