Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2759)

Unified Diff: chrome/browser/ui/cocoa/autofill/autofill_main_container_unittest.mm

Issue 21692002: Rename AutofillDialogController to AutofillDialogViewDelegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/autofill/autofill_main_container_unittest.mm
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_main_container_unittest.mm b/chrome/browser/ui/cocoa/autofill/autofill_main_container_unittest.mm
index 4fd79fb8c987c66723723e0fcf6282a7089f367d..4f26af1ad06783f53b5c870a3d794fe60b969d64 100644
--- a/chrome/browser/ui/cocoa/autofill/autofill_main_container_unittest.mm
+++ b/chrome/browser/ui/cocoa/autofill/autofill_main_container_unittest.mm
@@ -5,7 +5,7 @@
#import "chrome/browser/ui/cocoa/autofill/autofill_main_container.h"
#include "base/mac/scoped_nsobject.h"
-#include "chrome/browser/ui/autofill/mock_autofill_dialog_controller.h"
+#include "chrome/browser/ui/autofill/mock_autofill_dialog_view_delegate.h"
#import "chrome/browser/ui/cocoa/autofill/autofill_section_view.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/platform_test.h"
@@ -17,14 +17,14 @@ class AutofillMainContainerTest : public ui::CocoaTest {
public:
virtual void SetUp() {
CocoaTest::SetUp();
- container_.reset([[AutofillMainContainer alloc] initWithController:
- &controller_]);
+ container_.reset([[AutofillMainContainer alloc] initWithDelegate:
+ &delegate_]);
[[test_window() contentView] addSubview:[container_ view]];
}
protected:
base::scoped_nsobject<AutofillMainContainer> container_;
- testing::NiceMock<autofill::MockAutofillDialogController> controller_;
+ testing::NiceMock<autofill::MockAutofillDialogViewDelegate> delegate_;
};
} // namespace
@@ -76,8 +76,8 @@ TEST_F(AutofillMainContainerTest, SaveDetailsLocallyDefaultsToTrue) {
TEST_F(AutofillMainContainerTest, SaveInChromeCheckboxVisibility) {
using namespace testing;
- // Tests that the checkbox is only visible if the controller allows it.
- EXPECT_CALL(controller_, ShouldOfferToSaveInChrome()).Times(2)
+ // Tests that the checkbox is only visible if the delegate allows it.
+ EXPECT_CALL(delegate_, ShouldOfferToSaveInChrome()).Times(2)
.WillOnce(Return(false))
.WillOnce(Return(true));

Powered by Google App Engine
This is Rietveld 408576698