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_address_sheet_controller_mac.h" | |
8 #include "chrome/browser/autofill/autofill_profile.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 AutoFillAddressSheetControllerTest; | |
16 | |
17 TEST(AutoFillAddressSheetControllerTest, Basic) { | |
18 // A basic test that creates a new instance and releases. | |
19 // Aids valgrind leak detection. | |
20 AutoFillProfile profile; | |
21 scoped_nsobject<AutoFillAddressSheetController> controller( | |
22 [[AutoFillAddressSheetController alloc] | |
23 initWithProfile:profile | |
24 mode:kAutoFillAddressAddMode]); | |
25 EXPECT_TRUE(controller.get()); | |
26 } | |
27 | |
28 } // namespace | |
OLD | NEW |