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

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

Issue 337034: Remove the browser_sync flag. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 | « chrome/browser/sync/sync_setup_wizard.cc ('k') | chrome/browser/sync/sync_status_ui_helper.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 // Use of this source code is governed by a BSD-style license that can be 1 // Use of this source code is governed by a BSD-style license that can be
2 // found in the LICENSE file. 2 // found in the LICENSE file.
3 3
4 #if defined(BROWSER_SYNC)
5
6 #include "testing/gtest/include/gtest/gtest.h" 4 #include "testing/gtest/include/gtest/gtest.h"
7 5
8 #include "base/json/json_writer.h" 6 #include "base/json/json_writer.h"
9 #include "base/scoped_ptr.h" 7 #include "base/scoped_ptr.h"
10 #include "base/stl_util-inl.h" 8 #include "base/stl_util-inl.h"
11 #include "chrome/browser/browser.h" 9 #include "chrome/browser/browser.h"
12 #include "chrome/browser/browser_list.h" 10 #include "chrome/browser/browser_list.h"
13 #include "chrome/browser/sync/profile_sync_service.h" 11 #include "chrome/browser/sync/profile_sync_service.h"
14 #include "chrome/browser/sync/sync_setup_flow.h" 12 #include "chrome/browser/sync/sync_setup_flow.h"
15 #include "chrome/browser/sync/sync_setup_wizard.h" 13 #include "chrome/browser/sync/sync_setup_wizard.h"
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 dialog_args.GetString(L"user", &actual_user); 363 dialog_args.GetString(L"user", &actual_user);
366 EXPECT_EQ(kTestUser, actual_user); 364 EXPECT_EQ(kTestUser, actual_user);
367 int error = -1; 365 int error = -1;
368 dialog_args.GetInteger(L"error", &error); 366 dialog_args.GetInteger(L"error", &error);
369 EXPECT_EQ(static_cast<int>(AUTH_ERROR_INVALID_GAIA_CREDENTIALS), error); 367 EXPECT_EQ(static_cast<int>(AUTH_ERROR_INVALID_GAIA_CREDENTIALS), error);
370 service_->set_auth_state(kTestUser, AUTH_ERROR_NONE); 368 service_->set_auth_state(kTestUser, AUTH_ERROR_NONE);
371 369
372 wizard_->Step(SyncSetupWizard::GAIA_SUCCESS); 370 wizard_->Step(SyncSetupWizard::GAIA_SUCCESS);
373 EXPECT_TRUE(test_window_->TestAndResetWasShowHTMLDialogCalled()); 371 EXPECT_TRUE(test_window_->TestAndResetWasShowHTMLDialogCalled());
374 } 372 }
375
376 #endif // defined(BROWSER_SYNC)
OLDNEW
« no previous file with comments | « chrome/browser/sync/sync_setup_wizard.cc ('k') | chrome/browser/sync/sync_status_ui_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698