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

Unified Diff: chrome/browser/ui/views/sync/bubble_sync_promo_view_unittest.cc

Issue 1503583002: [Extensions Views] Update the extension installed bubble's sync promo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master Created 5 years 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
« no previous file with comments | « chrome/browser/ui/views/sync/bubble_sync_promo_view.cc ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/sync/bubble_sync_promo_view_unittest.cc
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_sync_promo_view_unittest.cc b/chrome/browser/ui/views/sync/bubble_sync_promo_view_unittest.cc
similarity index 57%
rename from chrome/browser/ui/views/bookmarks/bookmark_sync_promo_view_unittest.cc
rename to chrome/browser/ui/views/sync/bubble_sync_promo_view_unittest.cc
index f7f21615d06d297ae0cbe0466f6f6528f8e3ae0a..fe7907dab79ace5ea4c0a07405ee475d87e1434e 100644
--- a/chrome/browser/ui/views/bookmarks/bookmark_sync_promo_view_unittest.cc
+++ b/chrome/browser/ui/views/sync/bubble_sync_promo_view_unittest.cc
@@ -2,37 +2,40 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/ui/views/bookmarks/bookmark_sync_promo_view.h"
+#include "chrome/browser/ui/views/sync/bubble_sync_promo_view.h"
#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 "chrome/browser/ui/sync/bubble_sync_promo_delegate.h"
+#include "chrome/grit/chromium_strings.h"
+#include "chrome/grit/generated_resources.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 {
+class BubbleSyncPromoViewTest : public BubbleSyncPromoDelegate,
+ public testing::Test {
public:
- BookmarkSyncPromoViewTest() : sign_in_clicked_count_(0) {}
+ BubbleSyncPromoViewTest() : sign_in_clicked_count_(0) {}
protected:
- // BookmarkBubbleDelegate:
+ // BubbleSyncPromoDelegate:
void OnSignInLinkClicked() override { ++sign_in_clicked_count_; }
// Number of times that OnSignInLinkClicked has been called.
int sign_in_clicked_count_;
private:
- DISALLOW_COPY_AND_ASSIGN(BookmarkSyncPromoViewTest);
+ DISALLOW_COPY_AND_ASSIGN(BubbleSyncPromoViewTest);
};
-TEST_F(BookmarkSyncPromoViewTest, SignInLink) {
- scoped_ptr<BookmarkSyncPromoView> sync_promo;
- sync_promo.reset(new BookmarkSyncPromoView(this));
+TEST_F(BubbleSyncPromoViewTest, SignInLink) {
+ scoped_ptr<BubbleSyncPromoView> sync_promo;
+ sync_promo.reset(new BubbleSyncPromoView(this, IDS_BOOKMARK_SYNC_PROMO_LINK,
+ IDS_BOOKMARK_SYNC_PROMO_MESSAGE));
// Simulate clicking the "Sign in" link.
views::StyledLabel styled_label(base::ASCIIToUTF16("test"), nullptr);
« no previous file with comments | « chrome/browser/ui/views/sync/bubble_sync_promo_view.cc ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698