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

Unified Diff: chrome/browser/ui/views/bookmarks/bookmark_sync_promo_view_unittest.cc

Issue 1407093007: Autofill: Add legal message footer to save credit card bubble. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years, 1 month 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/views/bookmarks/bookmark_sync_promo_view_unittest.cc
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_sync_promo_view_unittest.cc b/chrome/browser/ui/views/bookmarks/bookmark_sync_promo_view_unittest.cc
index 4d08179be23b11c76c407b7eef211394a2bfc586..f7f21615d06d297ae0cbe0466f6f6528f8e3ae0a 100644
--- a/chrome/browser/ui/views/bookmarks/bookmark_sync_promo_view_unittest.cc
+++ b/chrome/browser/ui/views/bookmarks/bookmark_sync_promo_view_unittest.cc
@@ -7,10 +7,12 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
+#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/ui/bookmarks/bookmark_bubble_delegate.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/events/event_constants.h"
#include "ui/gfx/range/range.h"
+#include "ui/views/controls/styled_label.h"
class BookmarkSyncPromoViewTest : public BookmarkBubbleDelegate,
public testing::Test {
@@ -33,8 +35,9 @@ TEST_F(BookmarkSyncPromoViewTest, SignInLink) {
sync_promo.reset(new BookmarkSyncPromoView(this));
// Simulate clicking the "Sign in" link.
+ views::StyledLabel styled_label(base::ASCIIToUTF16("test"), nullptr);
views::StyledLabelListener* listener = sync_promo.get();
- listener->StyledLabelLinkClicked(gfx::Range(), ui::EF_NONE);
+ listener->StyledLabelLinkClicked(&styled_label, gfx::Range(), ui::EF_NONE);
EXPECT_EQ(1, sign_in_clicked_count_);
}

Powered by Google App Engine
This is Rietveld 408576698