| OLD | NEW |
| 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 Loading... |
| 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) | |
| OLD | NEW |