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

Side by Side Diff: google_apis/gaia/gaia_authenticator_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
« no previous file with comments | « google_apis/gaia/gaia_authenticator.cc ('k') | google_apis/gaia/gaia_constants.h » ('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 (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 #include "chrome/common/net/gaia/gaia_authenticator.h" 5 #include "google_apis/gaia/gaia_authenticator.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "googleurl/src/gurl.h" 9 #include "googleurl/src/gurl.h"
10 #include "net/http/http_status_code.h" 10 #include "net/http/http_status_code.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 12
13 using std::string; 13 using std::string;
14 14
15 namespace gaia { 15 namespace gaia {
(...skipping 24 matching lines...) Expand all
40 GaiaAuthMockForGaiaAuthenticator mock_auth; 40 GaiaAuthMockForGaiaAuthenticator mock_auth;
41 MessageLoop message_loop; 41 MessageLoop message_loop;
42 mock_auth.set_message_loop(&message_loop); 42 mock_auth.set_message_loop(&message_loop);
43 GaiaAuthenticator::AuthResults results; 43 GaiaAuthenticator::AuthResults results;
44 EXPECT_TRUE(mock_auth.IssueAuthToken(&results, "sid")); 44 EXPECT_TRUE(mock_auth.IssueAuthToken(&results, "sid"));
45 EXPECT_EQ(0, results.auth_token.compare("body")); 45 EXPECT_EQ(0, results.auth_token.compare("body"));
46 } 46 }
47 47
48 } // namespace gaia 48 } // namespace gaia
49 49
OLDNEW
« no previous file with comments | « google_apis/gaia/gaia_authenticator.cc ('k') | google_apis/gaia/gaia_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698