| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "base/scoped_nsobject.h" | |
| 6 #include "base/utf_string_conversions.h" | |
| 7 #import "chrome/browser/autofill/autofill_credit_card_sheet_controller_mac.h" | |
| 8 #include "chrome/browser/autofill/credit_card.h" | |
| 9 #include "chrome/browser/ui/cocoa/browser_test_helper.h" | |
| 10 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" | |
| 11 #include "testing/gtest/include/gtest/gtest.h" | |
| 12 | |
| 13 namespace { | |
| 14 | |
| 15 typedef CocoaTest AutoFillCreditCardSheetControllerTest; | |
| 16 | |
| 17 TEST(AutoFillCreditCardSheetControllerTest, Basic) { | |
| 18 // A basic test that creates a new instance and releases. | |
| 19 // Aids valgrind leak detection. | |
| 20 CreditCard credit_card; | |
| 21 scoped_nsobject<AutoFillCreditCardSheetController> controller( | |
| 22 [[AutoFillCreditCardSheetController alloc] | |
| 23 initWithCreditCard:credit_card | |
| 24 mode:kAutoFillCreditCardAddMode]); | |
| 25 EXPECT_TRUE(controller.get()); | |
| 26 } | |
| 27 | |
| 28 } // namespace | |
| 29 | |
| OLD | NEW |