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 ------------------------------------------------------- |