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

Side by Side Diff: chrome/browser/ui/autofill/autofill_dialog_types_unittest.cc

Issue 1931043002: Remove requestAutocomplete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "base/strings/utf_string_conversions.h"
6 #include "chrome/browser/ui/autofill/autofill_dialog_types.h"
7 #include "testing/gtest/include/gtest/gtest.h"
8
9 namespace autofill {
10
11 // Tests for correct parsing of anchor text ranges.
12 TEST(AutofillDialogTypesTest, DialogNotificationLink) {
13 base::string16 text(base::ASCIIToUTF16("Notification without anchor text"));
14 DialogNotification notification(DialogNotification::WALLET_ERROR, text);
15 EXPECT_TRUE(notification.link_range().is_empty());
16
17 text = base::ASCIIToUTF16("Notification with |anchor text|");
18 notification = DialogNotification(DialogNotification::WALLET_ERROR, text);
19 base::char16 bar = '|';
20 EXPECT_EQ(base::string16::npos, notification.display_text().find(bar));
21 EXPECT_FALSE(notification.link_range().is_empty());
22 }
23
24 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/autofill_dialog_types.cc ('k') | chrome/browser/ui/autofill/autofill_dialog_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698