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

Side by Side Diff: chrome/common/net/gaia/gaia_auth_fetcher_unittest.cc

Issue 7016011: iwyu: Include stringprintf.h where appropriate, part 3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Win fix. Created 9 years, 7 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 GaiaAuthFetcher. 5 // A complete set of unit tests for GaiaAuthFetcher.
6 // Originally ported from GoogleAuthenticator tests. 6 // Originally ported from GoogleAuthenticator tests.
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
11 #include "base/string_util.h" 11 #include "base/stringprintf.h"
12 #include "chrome/common/net/gaia/gaia_auth_consumer.h" 12 #include "chrome/common/net/gaia/gaia_auth_consumer.h"
13 #include "chrome/common/net/gaia/gaia_auth_fetcher.h" 13 #include "chrome/common/net/gaia/gaia_auth_fetcher.h"
14 #include "chrome/common/net/gaia/gaia_auth_fetcher_unittest.h" 14 #include "chrome/common/net/gaia/gaia_auth_fetcher_unittest.h"
15 #include "chrome/common/net/gaia/google_service_auth_error.h" 15 #include "chrome/common/net/gaia/google_service_auth_error.h"
16 #include "chrome/common/net/http_return.h" 16 #include "chrome/common/net/http_return.h"
17 #include "chrome/common/net/test_url_fetcher_factory.h" 17 #include "chrome/common/net/test_url_fetcher_factory.h"
18 #include "chrome/common/net/url_fetcher.h" 18 #include "chrome/common/net/url_fetcher.h"
19 #include "chrome/test/testing_profile.h" 19 #include "chrome/test/testing_profile.h"
20 #include "googleurl/src/gurl.h" 20 #include "googleurl/src/gurl.h"
21 #include "net/base/net_errors.h" 21 #include "net/base/net_errors.h"
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 EXPECT_TRUE(auth.HasPendingFetch()); 488 EXPECT_TRUE(auth.HasPendingFetch());
489 auth.OnURLFetchComplete( 489 auth.OnURLFetchComplete(
490 NULL, 490 NULL,
491 issue_auth_token_source_, 491 issue_auth_token_source_,
492 net::URLRequestStatus(net::URLRequestStatus::SUCCESS, 0), 492 net::URLRequestStatus(net::URLRequestStatus::SUCCESS, 0),
493 RC_FORBIDDEN, 493 RC_FORBIDDEN,
494 cookies_, 494 cookies_,
495 ""); 495 "");
496 EXPECT_FALSE(auth.HasPendingFetch()); 496 EXPECT_FALSE(auth.HasPendingFetch());
497 } 497 }
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension_unittest.cc ('k') | chrome/renderer/safe_browsing/features_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698