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

Unified Diff: components/google/core/browser/google_url_tracker_unittest.cc

Issue 765643003: Remove dependency from infobars component to the embedder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compilation Created 6 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/chrome_browser.gypi ('k') | components/infobars.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/google/core/browser/google_url_tracker_unittest.cc
diff --git a/components/google/core/browser/google_url_tracker_unittest.cc b/components/google/core/browser/google_url_tracker_unittest.cc
index 675fc3deaa67395917fb63f3f4d976fef8c1dc4f..e6bbefff339d47a30eeda309fa90f1e59b47f9cc 100644
--- a/components/google/core/browser/google_url_tracker_unittest.cc
+++ b/components/google/core/browser/google_url_tracker_unittest.cc
@@ -178,11 +178,21 @@ void TestGoogleURLTrackerNavigationHelper::OpenURL(
// TestInfoBarManager ---------------------------------------------------------
+const infobars::InfoBarConstants kTestInfoBarConstants = {
+ 1, // separator_line_height
+ 36, // default_bar_target_height
+ 9, // default_arrow_target_height
+ 24, // maximum_arrow_target_height
+ 9, // default_arrow_target_half_width
+ 14, // maximum_arrow_target_half_width
+};
+
class TestInfoBarManager : public infobars::InfoBarManager {
public:
explicit TestInfoBarManager(int unique_id);
~TestInfoBarManager() override;
int GetActiveEntryID() override;
+ const infobars::InfoBarConstants& GetInfoBarConstants() const override;
private:
int unique_id_;
@@ -200,6 +210,11 @@ int TestInfoBarManager::GetActiveEntryID() {
return unique_id_;
}
+const infobars::InfoBarConstants& TestInfoBarManager::GetInfoBarConstants()
+ const {
+ return kTestInfoBarConstants;
+}
+
} // namespace
// GoogleURLTrackerTest -------------------------------------------------------
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | components/infobars.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698