| 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
|
| +
|
|
|