OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ui/webui/sync_setup_handler.h" | 5 #include "chrome/browser/ui/webui/sync_setup_handler.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/json/json_writer.h" | 10 #include "base/json/json_writer.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "chrome/test/base/scoped_testing_local_state.h" | 24 #include "chrome/test/base/scoped_testing_local_state.h" |
25 #include "chrome/test/base/testing_browser_process.h" | 25 #include "chrome/test/base/testing_browser_process.h" |
26 #include "chrome/test/base/testing_profile.h" | 26 #include "chrome/test/base/testing_profile.h" |
27 #include "components/signin/core/browser/fake_auth_status_provider.h" | 27 #include "components/signin/core/browser/fake_auth_status_provider.h" |
28 #include "components/signin/core/browser/profile_oauth2_token_service.h" | 28 #include "components/signin/core/browser/profile_oauth2_token_service.h" |
29 #include "components/signin/core/browser/signin_manager.h" | 29 #include "components/signin/core/browser/signin_manager.h" |
30 #include "components/sync_driver/sync_prefs.h" | 30 #include "components/sync_driver/sync_prefs.h" |
31 #include "content/public/browser/web_ui.h" | 31 #include "content/public/browser/web_ui.h" |
32 #include "content/public/test/test_browser_thread.h" | 32 #include "content/public/test/test_browser_thread.h" |
33 #include "content/public/test/test_browser_thread_bundle.h" | 33 #include "content/public/test/test_browser_thread_bundle.h" |
34 #include "grit/generated_resources.h" | |
35 #include "testing/gtest/include/gtest/gtest.h" | 34 #include "testing/gtest/include/gtest/gtest.h" |
36 #include "ui/base/l10n/l10n_util.h" | |
37 #include "ui/base/layout.h" | 35 #include "ui/base/layout.h" |
38 | 36 |
39 using ::testing::_; | 37 using ::testing::_; |
40 using ::testing::Mock; | 38 using ::testing::Mock; |
41 using ::testing::Return; | 39 using ::testing::Return; |
42 using ::testing::ReturnRef; | 40 using ::testing::ReturnRef; |
43 using ::testing::Values; | 41 using ::testing::Values; |
44 | 42 |
45 typedef GoogleServiceAuthError AuthError; | 43 typedef GoogleServiceAuthError AuthError; |
46 | 44 |
(...skipping 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1053 | 1051 |
1054 // This should display the sync setup dialog (not login). | 1052 // This should display the sync setup dialog (not login). |
1055 handler_->OpenSyncSetup(); | 1053 handler_->OpenSyncSetup(); |
1056 | 1054 |
1057 ExpectConfig(); | 1055 ExpectConfig(); |
1058 const TestWebUI::CallData& data = web_ui_.call_data()[0]; | 1056 const TestWebUI::CallData& data = web_ui_.call_data()[0]; |
1059 base::DictionaryValue* dictionary; | 1057 base::DictionaryValue* dictionary; |
1060 ASSERT_TRUE(data.arg2->GetAsDictionary(&dictionary)); | 1058 ASSERT_TRUE(data.arg2->GetAsDictionary(&dictionary)); |
1061 CheckBool(dictionary, "encryptAllData", true); | 1059 CheckBool(dictionary, "encryptAllData", true); |
1062 } | 1060 } |
OLD | NEW |