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

Unified Diff: chrome/browser/autofill/autofill_credit_card_sheet_controller_mac_unittest.mm

Issue 2673006: AutoFill Profiles dialog implemented according to new mocks on Mac (Closed)
Patch Set: Revisions based on review comments. Created 10 years, 6 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/autofill/autofill_credit_card_sheet_controller_mac_unittest.mm
diff --git a/chrome/browser/autofill/autofill_credit_card_view_controller_mac_unittest.mm b/chrome/browser/autofill/autofill_credit_card_sheet_controller_mac_unittest.mm
similarity index 65%
rename from chrome/browser/autofill/autofill_credit_card_view_controller_mac_unittest.mm
rename to chrome/browser/autofill/autofill_credit_card_sheet_controller_mac_unittest.mm
index 8724f4bac06ba08eb3cbd8fc89bccc601292904a..a15b4217d8a2f98f81a929c3d817936a68228283 100644
--- a/chrome/browser/autofill/autofill_credit_card_view_controller_mac_unittest.mm
+++ b/chrome/browser/autofill/autofill_credit_card_sheet_controller_mac_unittest.mm
@@ -3,7 +3,7 @@
// found in the LICENSE file.
#include "base/scoped_nsobject.h"
-#import "chrome/browser/autofill/autofill_credit_card_view_controller_mac.h"
+#import "chrome/browser/autofill/autofill_credit_card_sheet_controller_mac.h"
#include "chrome/browser/autofill/credit_card.h"
#include "chrome/browser/cocoa/browser_test_helper.h"
#import "chrome/browser/cocoa/cocoa_test_helper.h"
@@ -11,18 +11,19 @@
namespace {
-typedef CocoaTest AutoFillCreditCardViewControllerTest;
+typedef CocoaTest AutoFillCreditCardSheetControllerTest;
-TEST(AutoFillCreditCardViewControllerTest, Basic) {
+TEST(AutoFillCreditCardSheetControllerTest, Basic) {
// A basic test that creates a new instance and releases.
// Aids valgrind leak detection.
CreditCard credit_card(ASCIIToUTF16("myCC"), 0);
- scoped_nsobject<AutoFillCreditCardViewController> controller(
- [[AutoFillCreditCardViewController alloc]
+ scoped_nsobject<AutoFillCreditCardSheetController> controller(
+ [[AutoFillCreditCardSheetController alloc]
initWithCreditCard:credit_card
- disclosure:NSOffState
+ mode:kAutoFillCreditCardAddMode
controller:nil]);
EXPECT_TRUE(controller.get());
}
} // namespace
+

Powered by Google App Engine
This is Rietveld 408576698