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

Side by Side Diff: chrome/browser/sync/signin_manager_unittest.cc

Issue 7006005: Move UrlFetcher to content. I originally thought that it's only used by chrome code, but turns o... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix linux Created 9 years, 6 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 #include "chrome/browser/sync/signin_manager.h" 5 #include "chrome/browser/sync/signin_manager.h"
6 6
7 #include "chrome/browser/net/gaia/token_service.h" 7 #include "chrome/browser/net/gaia/token_service.h"
8 #include "chrome/browser/net/gaia/token_service_unittest.h" 8 #include "chrome/browser/net/gaia/token_service_unittest.h"
9 #include "chrome/browser/password_manager/encryptor.h" 9 #include "chrome/browser/password_manager/encryptor.h"
10 #include "chrome/browser/webdata/web_data_service.h" 10 #include "chrome/browser/webdata/web_data_service.h"
11 #include "chrome/common/net/test_url_fetcher_factory.h"
12 #include "chrome/test/signaling_task.h" 11 #include "chrome/test/signaling_task.h"
13 #include "chrome/test/testing_profile.h" 12 #include "chrome/test/testing_profile.h"
13 #include "content/common/test_url_fetcher_factory.h"
14 #include "net/url_request/url_request.h" 14 #include "net/url_request/url_request.h"
15 #include "net/url_request/url_request_status.h" 15 #include "net/url_request/url_request_status.h"
16 16
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 18
19 class SigninManagerTest : public TokenServiceTestHarness { 19 class SigninManagerTest : public TokenServiceTestHarness {
20 public: 20 public:
21 virtual void SetUp() { 21 virtual void SetUp() {
22 TokenServiceTestHarness::SetUp(); 22 TokenServiceTestHarness::SetUp();
23 manager_.reset(new SigninManager()); 23 manager_.reset(new SigninManager());
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 157
158 TEST_F(SigninManagerTest, SignOutMidConnect) { 158 TEST_F(SigninManagerTest, SignOutMidConnect) {
159 manager_->Initialize(profile_.get()); 159 manager_->Initialize(profile_.get());
160 manager_->StartSignIn("username", "password", "", ""); 160 manager_->StartSignIn("username", "password", "", "");
161 manager_->SignOut(); 161 manager_->SignOut();
162 EXPECT_EQ(0U, google_login_success_.size()); 162 EXPECT_EQ(0U, google_login_success_.size());
163 EXPECT_EQ(0U, google_login_failure_.size()); 163 EXPECT_EQ(0U, google_login_failure_.size());
164 164
165 EXPECT_TRUE(manager_->GetUsername().empty()); 165 EXPECT_TRUE(manager_->GetUsername().empty());
166 } 166 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host_unittest.cc ('k') | chrome/browser/translate/translate_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698