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

Unified 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: Fix broken include path. 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/autofill/autofill_details_container_unittest.mm
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_details_container_unittest.mm b/chrome/browser/ui/cocoa/autofill/autofill_details_container_unittest.mm
new file mode 100644
index 0000000000000000000000000000000000000000..4841710e734c4d4757e6f81669e7db2a3444445d
--- /dev/null
+++ b/chrome/browser/ui/cocoa/autofill/autofill_details_container_unittest.mm
@@ -0,0 +1,36 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#import "chrome/browser/ui/cocoa/autofill/autofill_details_container.h"
+
+#include "base/memory/scoped_nsobject.h"
+#include "chrome/browser/ui/autofill/mock_autofill_dialog_controller.h"
+#include "testing/gtest/include/gtest/gtest.h"
+#include "testing/platform_test.h"
+#import "ui/base/test/ui_cocoa_test_helper.h"
+
+namespace {
+
+class AutofillDetailsContainerTest : public ui::CocoaTest {
+ public:
+ AutofillDetailsContainerTest() {
+ container_.reset([[AutofillDetailsContainer alloc] initWithController:
+ &controller_]);
+ [[test_window() contentView] addSubview:[container_ view]];
+ }
+
+ protected:
+ scoped_nsobject<AutofillDetailsContainer> container_;
+ testing::NiceMock<autofill::MockAutofillDialogController> controller_;
+};
+
+} // namespace
+
+TEST_VIEW(AutofillDetailsContainerTest, [container_ view])
+
+TEST_F(AutofillDetailsContainerTest, BasicProperties) {
+ EXPECT_GT([[[container_ view] subviews] count], 0U);
+ EXPECT_GT(NSHeight([[container_ view] frame]), 0);
+ EXPECT_GT(NSWidth([[container_ view] frame]), 0);
+}

Powered by Google App Engine
This is Rietveld 408576698