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

Side by Side Diff: chrome/browser/autofill/autofill_address_sheet_controller_mac_unittest.mm

Issue 6621076: [Mac] Remove native/Cocoa preferences. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase switch removal Created 9 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698