| 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 #import "chrome/browser/ui/cocoa/passwords/pending_password_view_controller.h" | 5 #import "chrome/browser/ui/cocoa/passwords/pending_password_view_controller.h" |
| 6 | 6 |
| 7 #include "base/mac/scoped_nsobject.h" | 7 #include "base/mac/scoped_nsobject.h" |
| 8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #import "chrome/browser/ui/cocoa/bubble_combobox.h" | 10 #import "chrome/browser/ui/cocoa/bubble_combobox.h" |
| 11 #include "chrome/browser/ui/cocoa/passwords/base_passwords_controller_test.h" | 11 #include "chrome/browser/ui/cocoa/passwords/base_passwords_controller_test.h" |
| 12 #import "chrome/browser/ui/cocoa/passwords/credentials_selection_view.h" | 12 #import "chrome/browser/ui/cocoa/passwords/credentials_selection_view_cocoa.h" |
| 13 #import "chrome/browser/ui/cocoa/passwords/passwords_list_view_controller.h" | 13 #import "chrome/browser/ui/cocoa/passwords/passwords_list_view_controller.h" |
| 14 #import "chrome/browser/ui/cocoa/passwords/update_pending_password_view_controll
er.h" | 14 #import "chrome/browser/ui/cocoa/passwords/update_pending_password_view_controll
er.h" |
| 15 #include "chrome/browser/ui/cocoa/test/cocoa_test_helper.h" | 15 #include "chrome/browser/ui/cocoa/test/cocoa_test_helper.h" |
| 16 #include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h" | 16 #include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h" |
| 17 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller_mock.h" | 17 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller_mock.h" |
| 18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
| 19 #include "testing/gtest_mac.h" | 19 #include "testing/gtest_mac.h" |
| 20 | 20 |
| 21 using testing::_; | 21 using testing::_; |
| 22 | 22 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 // still sends the action. | 88 // still sends the action. |
| 89 SetUpUpdatePendingState(false); | 89 SetUpUpdatePendingState(false); |
| 90 EXPECT_CALL(*ui_controller(), UpdatePassword(_)).Times(0); | 90 EXPECT_CALL(*ui_controller(), UpdatePassword(_)).Times(0); |
| 91 EXPECT_CALL(*ui_controller(), OnNopeUpdateClicked()).Times(0); | 91 EXPECT_CALL(*ui_controller(), OnNopeUpdateClicked()).Times(0); |
| 92 [delegate() setModel:nil]; | 92 [delegate() setModel:nil]; |
| 93 [controller().updateButton performClick:nil]; | 93 [controller().updateButton performClick:nil]; |
| 94 [controller().noButton performClick:nil]; | 94 [controller().noButton performClick:nil]; |
| 95 } | 95 } |
| 96 | 96 |
| 97 } // namespace | 97 } // namespace |
| OLD | NEW |