OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/settings/people_handler.h" | 5 #include "chrome/browser/ui/webui/settings/people_handler.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 26 matching lines...) Expand all Loading... |
37 #include "content/public/test/test_browser_thread_bundle.h" | 37 #include "content/public/test/test_browser_thread_bundle.h" |
38 #include "content/public/test/test_web_ui.h" | 38 #include "content/public/test/test_web_ui.h" |
39 #include "testing/gtest/include/gtest/gtest.h" | 39 #include "testing/gtest/include/gtest/gtest.h" |
40 #include "ui/base/layout.h" | 40 #include "ui/base/layout.h" |
41 | 41 |
42 using ::testing::_; | 42 using ::testing::_; |
43 using ::testing::Mock; | 43 using ::testing::Mock; |
44 using ::testing::Return; | 44 using ::testing::Return; |
45 using ::testing::ReturnRef; | 45 using ::testing::ReturnRef; |
46 using ::testing::Values; | 46 using ::testing::Values; |
| 47 using browser_sync::ProfileSyncService; |
| 48 using browser_sync::ProfileSyncServiceMock; |
47 | 49 |
48 typedef GoogleServiceAuthError AuthError; | 50 typedef GoogleServiceAuthError AuthError; |
49 | 51 |
50 namespace { | 52 namespace { |
51 | 53 |
52 MATCHER_P(ModelTypeSetMatches, value, "") { | 54 MATCHER_P(ModelTypeSetMatches, value, "") { |
53 return arg == value; | 55 return arg == value; |
54 } | 56 } |
55 | 57 |
56 const char kTestUser[] = "chrome.p13n.test@gmail.com"; | 58 const char kTestUser[] = "chrome.p13n.test@gmail.com"; |
(...skipping 851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
908 SetupInitializedProfileSyncService(); | 910 SetupInitializedProfileSyncService(); |
909 EXPECT_CALL(*mock_pss_, IsEncryptEverythingAllowed()) | 911 EXPECT_CALL(*mock_pss_, IsEncryptEverythingAllowed()) |
910 .WillRepeatedly(Return(false)); | 912 .WillRepeatedly(Return(false)); |
911 EXPECT_CALL(*mock_pss_, EnableEncryptEverything()).Times(0); | 913 EXPECT_CALL(*mock_pss_, EnableEncryptEverything()).Times(0); |
912 handler_->HandleSetEncryption(&list_args); | 914 handler_->HandleSetEncryption(&list_args); |
913 | 915 |
914 ExpectPageStatusResponse(PeopleHandler::kConfigurePageStatus); | 916 ExpectPageStatusResponse(PeopleHandler::kConfigurePageStatus); |
915 } | 917 } |
916 | 918 |
917 } // namespace settings | 919 } // namespace settings |
OLD | NEW |