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

Unified Diff: chrome/browser/ui/cocoa/omnibox/omnibox_view_mac_unittest.mm

Issue 1653013002: Abstract ToolbarModelImpl dependencies on //content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@1
Patch Set: Address comments Created 4 years, 11 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/cocoa/omnibox/omnibox_view_mac_unittest.mm
diff --git a/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac_unittest.mm b/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac_unittest.mm
index 7236a02648d7807714d58370b8e3e9fd06cccc97..ca6a923df9d8a9dd3e3359a8558f1a6c2a09e8f8 100644
--- a/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac_unittest.mm
+++ b/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac_unittest.mm
@@ -15,6 +15,7 @@
#include "chrome/test/base/testing_profile.h"
#include "components/omnibox/browser/omnibox_popup_model.h"
#include "components/omnibox/browser/omnibox_popup_view.h"
+#include "content/public/common/content_constants.h"
#include "testing/platform_test.h"
#include "ui/gfx/font.h"
#include "ui/gfx/geometry/rect.h"
@@ -74,7 +75,7 @@ class TestingToolbarModelDelegate : public ChromeToolbarModelDelegate {
TestingToolbarModelDelegate() {}
~TestingToolbarModelDelegate() override {}
- // Overridden from ToolbarModelDelegate:
+ // Overridden from ChromeToolbarModelDelegate:
content::WebContents* GetActiveWebContents() const override { return NULL; }
private:
@@ -150,7 +151,7 @@ TEST_F(OmniboxViewMacTest, SetGrayTextAutocompletion) {
[[AutocompleteTextField alloc] initWithFrame:frame]);
TestingToolbarModelDelegate delegate;
- ToolbarModelImpl toolbar_model(&delegate);
+ ToolbarModelImpl toolbar_model(&delegate, content::kMaxURLDisplayChars);
TestingOmniboxEditController controller(&toolbar_model);
OmniboxViewMac view(&controller, profile(), NULL, field.get());
« no previous file with comments | « chrome/browser/ui/browser_toolbar_model_delegate.h ('k') | chrome/browser/ui/toolbar/chrome_toolbar_model_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698