| 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 #ifdef CHROME_PERSONALIZATION | 4 #ifdef CHROME_PERSONALIZATION |
| 5 | 5 |
| 6 #include "testing/gtest/include/gtest/gtest.h" | 6 #include "testing/gtest/include/gtest/gtest.h" |
| 7 | 7 |
| 8 #include "base/json_writer.h" | 8 #include "base/json_writer.h" |
| 9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
| 10 #include "base/stl_util-inl.h" | 10 #include "base/stl_util-inl.h" |
| 11 #include "chrome/browser/browser.h" | 11 #include "chrome/browser/browser.h" |
| 12 #include "chrome/browser/browser_list.h" | 12 #include "chrome/browser/browser_list.h" |
| 13 #include "chrome/browser/sync/profile_sync_service.h" | 13 #include "chrome/browser/sync/profile_sync_service.h" |
| 14 #include "chrome/browser/views/sync/sync_setup_flow.h" | 14 #include "chrome/browser/sync/sync_setup_flow.h" |
| 15 #include "chrome/browser/views/sync/sync_setup_wizard.h" | 15 #include "chrome/browser/sync/sync_setup_wizard.h" |
| 16 #include "chrome/common/pref_names.h" | 16 #include "chrome/common/pref_names.h" |
| 17 #include "chrome/common/pref_service.h" | 17 #include "chrome/common/pref_service.h" |
| 18 #include "chrome/test/browser_with_test_window_test.h" | 18 #include "chrome/test/browser_with_test_window_test.h" |
| 19 #include "chrome/test/testing_profile.h" | 19 #include "chrome/test/testing_profile.h" |
| 20 #include "chrome/test/test_browser_window.h" | 20 #include "chrome/test/test_browser_window.h" |
| 21 | 21 |
| 22 static const char* kTestUser = "chrome.p13n.test@gmail.com"; | 22 static const char* kTestUser = "chrome.p13n.test@gmail.com"; |
| 23 static const char* kTestPassword = "passwd"; | 23 static const char* kTestPassword = "passwd"; |
| 24 | 24 |
| 25 // A PSS subtype to inject. | 25 // A PSS subtype to inject. |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 int error = -1; | 367 int error = -1; |
| 368 dialog_args.GetInteger(L"error", &error); | 368 dialog_args.GetInteger(L"error", &error); |
| 369 EXPECT_EQ(static_cast<int>(AUTH_ERROR_INVALID_GAIA_CREDENTIALS), error); | 369 EXPECT_EQ(static_cast<int>(AUTH_ERROR_INVALID_GAIA_CREDENTIALS), error); |
| 370 service_->set_auth_state(kTestUser, AUTH_ERROR_NONE); | 370 service_->set_auth_state(kTestUser, AUTH_ERROR_NONE); |
| 371 | 371 |
| 372 wizard_->Step(SyncSetupWizard::GAIA_SUCCESS); | 372 wizard_->Step(SyncSetupWizard::GAIA_SUCCESS); |
| 373 EXPECT_TRUE(test_window_->TestAndResetWasShowHTMLDialogCalled()); | 373 EXPECT_TRUE(test_window_->TestAndResetWasShowHTMLDialogCalled()); |
| 374 } | 374 } |
| 375 | 375 |
| 376 #endif // CHROME_PERSONALIZATION | 376 #endif // CHROME_PERSONALIZATION |
| OLD | NEW |