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

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: Fix compile errors in chrome 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
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" 12 #include "google_apis/gaia/oauth2_access_token_fetcher_impl.h"
Roger Tawa OOO till Jul 10th 2014/03/03 21:24:44 Why this change?
msarda 2014/03/04 12:37:13 Done.
13 #include "google_apis/gaia/oauth2_token_service.h" 13 #include "google_apis/gaia/oauth2_token_service.h"
14 #include "google_apis/gaia/oauth2_token_service_test_util.h" 14 #include "google_apis/gaia/oauth2_token_service_test_util.h"
15 #include "net/http/http_status_code.h" 15 #include "net/http/http_status_code.h"
16 #include "net/url_request/test_url_fetcher_factory.h" 16 #include "net/url_request/test_url_fetcher_factory.h"
17 #include "net/url_request/url_fetcher_delegate.h" 17 #include "net/url_request/url_fetcher_delegate.h"
18 #include "net/url_request/url_request_test_util.h" 18 #include "net/url_request/url_request_test_util.h"
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 20
21 // A testing consumer that retries on error. 21 // A testing consumer that retries on error.
22 class RetryingTestingOAuth2TokenServiceConsumer 22 class RetryingTestingOAuth2TokenServiceConsumer
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 } else if (i < j) { 630 } else if (i < j) {
631 EXPECT_TRUE(params[i] < params[j]) << " i=" << i << ", j=" << j; 631 EXPECT_TRUE(params[i] < params[j]) << " i=" << i << ", j=" << j;
632 EXPECT_FALSE(params[j] < params[i]) << " i=" << i << ", j=" << j; 632 EXPECT_FALSE(params[j] < params[i]) << " i=" << i << ", j=" << j;
633 } else { 633 } else {
634 EXPECT_TRUE(params[j] < params[i]) << " i=" << i << ", j=" << j; 634 EXPECT_TRUE(params[j] < params[i]) << " i=" << i << ", j=" << j;
635 EXPECT_FALSE(params[i] < params[j]) << " i=" << i << ", j=" << j; 635 EXPECT_FALSE(params[i] < params[j]) << " i=" << i << ", j=" << j;
636 } 636 }
637 } 637 }
638 } 638 }
639 } 639 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698