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

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

Issue 658383003: Componentize Constrained Window Views (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: rebase Created 6 years, 2 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/views/bookmarks/bookmark_bar_view_test.cc
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc b/chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc
index 08f27c9af3bb3c54395165b5c38328ec7bc912f3..378910bc9cef658552e9ff16cd5273d96559edc3 100644
--- a/chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc
+++ b/chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc
@@ -19,6 +19,7 @@
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/browser/ui/views/bookmarks/bookmark_bar_view.h"
+#include "chrome/browser/ui/views/chrome_constrained_window_views_client.h"
#include "chrome/common/chrome_content_client.h"
#include "chrome/common/pref_names.h"
#include "chrome/test/base/interactive_test_utils.h"
@@ -30,6 +31,7 @@
#include "chrome/test/base/view_event_test_base.h"
#include "components/bookmarks/browser/bookmark_model.h"
#include "components/bookmarks/test/bookmark_test_helpers.h"
+#include "components/constrained_window/constrained_window_views.h"
#include "content/public/browser/notification_service.h"
#include "content/public/browser/page_navigator.h"
#include "content/public/test/test_browser_thread.h"
@@ -260,6 +262,7 @@ class BookmarkBarViewEventTestBase : public ViewEventTestBase {
views::MenuController::TurnOffMenuSelectionHoldForTest();
BookmarkBarView::DisableAnimationsForTesting(true);
+ SetConstrainedWindowViewsClient(CreateChromeConstrainedWindowViewsClient());
profile_.reset(new TestingProfile());
profile_->CreateBookmarkModel(true);
@@ -318,6 +321,7 @@ class BookmarkBarViewEventTestBase : public ViewEventTestBase {
ViewEventTestBase::TearDown();
BookmarkBarView::DisableAnimationsForTesting(false);
+ SetConstrainedWindowViewsClient(scoped_ptr<ConstrainedWindowViewsClient>());
browser_content_client_.reset();
content_client_.reset();

Powered by Google App Engine
This is Rietveld 408576698