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

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

Issue 974323002: Componentize autofill dialog common code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "chrome/browser/ui/cocoa/autofill/autofill_notification_controller.h" 5 #import "chrome/browser/ui/cocoa/autofill/autofill_notification_controller.h"
6 6
7 #include "base/mac/scoped_nsobject.h" 7 #include "base/mac/scoped_nsobject.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" 9 #include "components/autofill/core/browser/ui/autofill_dialog_types.h"
10 #include "testing/gtest_mac.h" 10 #include "testing/gtest_mac.h"
11 #import "ui/gfx/test/ui_cocoa_test_helper.h" 11 #import "ui/gfx/test/ui_cocoa_test_helper.h"
12 12
13 using base::ASCIIToUTF16; 13 using base::ASCIIToUTF16;
14 14
15 namespace { 15 namespace {
16 16
17 class AutofillNotificationControllerTest : public ui::CocoaTest { 17 class AutofillNotificationControllerTest : public ui::CocoaTest {
18 public: 18 public:
19 void SetUp() override { 19 void SetUp() override {
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 autofill::DialogNotification::WALLET_USAGE_CONFIRMATION, 100 autofill::DialogNotification::WALLET_USAGE_CONFIRMATION,
101 ASCIIToUTF16("A notification title")); 101 ASCIIToUTF16("A notification title"));
102 ASSERT_TRUE(notification.HasCheckbox()); 102 ASSERT_TRUE(notification.HasCheckbox());
103 notification.set_tooltip_text(ASCIIToUTF16("My very informative tooltip.")); 103 notification.set_tooltip_text(ASCIIToUTF16("My very informative tooltip."));
104 InitControllerWithNotification(notification); 104 InitControllerWithNotification(notification);
105 105
106 EXPECT_TRUE([[controller_ textview] isHidden]); 106 EXPECT_TRUE([[controller_ textview] isHidden]);
107 EXPECT_FALSE([[controller_ checkbox] isHidden]); 107 EXPECT_FALSE([[controller_ checkbox] isHidden]);
108 EXPECT_FALSE([[controller_ tooltipView] isHidden]); 108 EXPECT_FALSE([[controller_ tooltipView] isHidden]);
109 } 109 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698