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

Side by Side Diff: chrome/browser/ui/cocoa/autofill/autofill_details_container_unittest.mm

Issue 14704004: [Autofill] Add Details Section (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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) 2013 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 #import "chrome/browser/ui/cocoa/autofill/autofill_details_container.h"
6
7 #include "base/memory/scoped_nsobject.h"
8 #include "chrome/browser/ui/autofill/mock_autofill_dialog_controller.h"
9 #include "testing/gtest/include/gtest/gtest.h"
10 #include "testing/platform_test.h"
11 #import "ui/base/test/ui_cocoa_test_helper.h"
12
13 namespace {
14
15 class AutofillDetailsContainerTest : public ui::CocoaTest {
16 public:
17 virtual void SetUp() {
sail 2013/05/01 17:12:36 Could do this in the constructor too (like your ot
groby-ooo-7-16 2013/05/01 20:37:44 Done.
18 CocoaTest::SetUp();
19 container_.reset([[AutofillDetailsContainer alloc] initWithController:
20 &controller_]);
21 [[test_window() contentView] addSubview:[container_ view]];
22 }
23
24 protected:
25 scoped_nsobject<AutofillDetailsContainer> container_;
26 testing::NiceMock<autofill::MockAutofillDialogController> controller_;
27 };
28
29 } // namespace
30
31 TEST_VIEW(AutofillDetailsContainerTest, [container_ view])
32
33 TEST_F(AutofillDetailsContainerTest, BasicProperties) {
34 EXPECT_GT([[[container_ view] subviews] count], 0U);
35 EXPECT_GT(NSHeight([[container_ view] frame]), 0);
36 EXPECT_GT(NSWidth([[container_ view] frame]), 0);
37 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698