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

Side by Side Diff: chrome/browser/net/gaia/gaia_oauth_fetcher_unittest.cc

Issue 10928017: Moving google_apis and GaiaClient to src/google_apis. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head Created 8 years, 3 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // A complete set of unit tests for GaiaOAuthFetcher. 5 // A complete set of unit tests for GaiaOAuthFetcher.
6 // Originally ported from GaiaAuthFetcher tests. 6 // Originally ported from GaiaAuthFetcher tests.
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/message_loop.h" 11 #include "base/message_loop.h"
12 #include "chrome/browser/net/gaia/gaia_oauth_consumer.h" 12 #include "chrome/browser/net/gaia/gaia_oauth_consumer.h"
13 #include "chrome/browser/net/gaia/gaia_oauth_fetcher.h" 13 #include "chrome/browser/net/gaia/gaia_oauth_fetcher.h"
14 #include "chrome/common/net/gaia/gaia_constants.h"
15 #include "chrome/common/net/gaia/gaia_urls.h"
16 #include "chrome/common/net/gaia/google_service_auth_error.h"
17 #include "chrome/test/base/testing_profile.h" 14 #include "chrome/test/base/testing_profile.h"
15 #include "google_apis/gaia/gaia_constants.h"
16 #include "google_apis/gaia/gaia_urls.h"
17 #include "google_apis/gaia/google_service_auth_error.h"
18 #include "googleurl/src/gurl.h" 18 #include "googleurl/src/gurl.h"
19 #include "net/base/net_errors.h" 19 #include "net/base/net_errors.h"
20 #include "net/http/http_status_code.h" 20 #include "net/http/http_status_code.h"
21 #include "net/url_request/test_url_fetcher_factory.h" 21 #include "net/url_request/test_url_fetcher_factory.h"
22 #include "net/url_request/url_request_status.h" 22 #include "net/url_request/url_request_status.h"
23 #include "testing/gmock/include/gmock/gmock.h" 23 #include "testing/gmock/include/gmock/gmock.h"
24 #include "testing/gtest/include/gtest/gtest.h" 24 #include "testing/gtest/include/gtest/gtest.h"
25 25
26 using ::testing::_; 26 using ::testing::_;
27 27
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 net::URLRequestStatus status(net::URLRequestStatus::SUCCESS, 0); 243 net::URLRequestStatus status(net::URLRequestStatus::SUCCESS, 0);
244 GURL url(GaiaUrls::GetInstance()->oauth_revoke_token_url()); 244 GURL url(GaiaUrls::GetInstance()->oauth_revoke_token_url());
245 245
246 net::TestURLFetcher test_fetcher(0, GURL(), &oauth_fetcher); 246 net::TestURLFetcher test_fetcher(0, GURL(), &oauth_fetcher);
247 test_fetcher.set_url(url); 247 test_fetcher.set_url(url);
248 test_fetcher.set_status(status); 248 test_fetcher.set_status(status);
249 test_fetcher.set_response_code(net::HTTP_OK); 249 test_fetcher.set_response_code(net::HTTP_OK);
250 test_fetcher.set_cookies(cookies); 250 test_fetcher.set_cookies(cookies);
251 oauth_fetcher.OnURLFetchComplete(&test_fetcher); 251 oauth_fetcher.OnURLFetchComplete(&test_fetcher);
252 } 252 }
OLDNEW
« no previous file with comments | « chrome/browser/net/gaia/gaia_oauth_fetcher.cc ('k') | chrome/browser/password_manager/password_manager_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698