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

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

Issue 7541001: Move more files from chrome/test to chrome/test/base, part #3 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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/sync_setup_wizard.h" 5 #include "chrome/browser/sync/sync_setup_wizard.h"
6 6
7 #include "base/json/json_writer.h" 7 #include "base/json/json_writer.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/stl_util.h" 9 #include "base/stl_util.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "chrome/browser/prefs/pref_service.h" 11 #include "chrome/browser/prefs/pref_service.h"
12 #include "chrome/browser/sync/engine/syncapi.h" 12 #include "chrome/browser/sync/engine/syncapi.h"
13 #include "chrome/browser/sync/profile_sync_factory_mock.h" 13 #include "chrome/browser/sync/profile_sync_factory_mock.h"
14 #include "chrome/browser/sync/profile_sync_service.h" 14 #include "chrome/browser/sync/profile_sync_service.h"
15 #include "chrome/browser/sync/signin_manager.h" 15 #include "chrome/browser/sync/signin_manager.h"
16 #include "chrome/browser/sync/sync_setup_flow.h" 16 #include "chrome/browser/sync/sync_setup_flow.h"
17 #include "chrome/browser/ui/browser.h" 17 #include "chrome/browser/ui/browser.h"
18 #include "chrome/browser/ui/browser_list.h" 18 #include "chrome/browser/ui/browser_list.h"
19 #include "chrome/browser/ui/webui/options/options_sync_setup_handler.h" 19 #include "chrome/browser/ui/webui/options/options_sync_setup_handler.h"
20 #include "chrome/common/net/gaia/google_service_auth_error.h" 20 #include "chrome/common/net/gaia/google_service_auth_error.h"
21 #include "chrome/common/pref_names.h" 21 #include "chrome/common/pref_names.h"
22 #include "chrome/test/base/test_browser_window.h"
22 #include "chrome/test/browser_with_test_window_test.h" 23 #include "chrome/test/browser_with_test_window_test.h"
23 #include "chrome/test/test_browser_window.h"
24 #include "chrome/test/testing_profile.h" 24 #include "chrome/test/testing_profile.h"
25 #include "testing/gtest/include/gtest/gtest.h" 25 #include "testing/gtest/include/gtest/gtest.h"
26 26
27 static const char kTestUser[] = "chrome.p13n.test@gmail.com"; 27 static const char kTestUser[] = "chrome.p13n.test@gmail.com";
28 static const char kTestPassword[] = "passwd"; 28 static const char kTestPassword[] = "passwd";
29 static const char kTestCaptcha[] = "pizzamyheart"; 29 static const char kTestCaptcha[] = "pizzamyheart";
30 static const char kTestCaptchaUrl[] = "http://pizzamyheart/"; 30 static const char kTestCaptchaUrl[] = "http://pizzamyheart/";
31 31
32 typedef GoogleServiceAuthError AuthError; 32 typedef GoogleServiceAuthError AuthError;
33 33
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 AuthError(GoogleServiceAuthError::SERVICE_UNAVAILABLE)); 581 AuthError(GoogleServiceAuthError::SERVICE_UNAVAILABLE));
582 wizard_->Step(SyncSetupWizard::NONFATAL_ERROR); 582 wizard_->Step(SyncSetupWizard::NONFATAL_ERROR);
583 AttachSyncSetupHandler(); 583 AttachSyncSetupHandler();
584 EXPECT_EQ(SyncSetupWizard::GAIA_LOGIN, flow_->current_state_); 584 EXPECT_EQ(SyncSetupWizard::GAIA_LOGIN, flow_->current_state_);
585 EXPECT_EQ(SyncSetupWizard::DONE, flow_->end_state_); 585 EXPECT_EQ(SyncSetupWizard::DONE, flow_->end_state_);
586 CloseSetupUI(); 586 CloseSetupUI();
587 EXPECT_FALSE(wizard_->IsVisible()); 587 EXPECT_FALSE(wizard_->IsVisible());
588 } 588 }
589 589
590 #undef SKIP_TEST_ON_MACOSX 590 #undef SKIP_TEST_ON_MACOSX
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698