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

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

Issue 812823002: Remove dependency of infobars component on the embedder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compilation on Android 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 | « components/google/core/browser/google_url_tracker_infobar_delegate.cc ('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..184468a7977ae1319e0cd1a91de9516d3119ab41 100644
--- a/components/google/core/browser/google_url_tracker_unittest.cc
+++ b/components/google/core/browser/google_url_tracker_unittest.cc
@@ -16,6 +16,7 @@
#include "components/google/core/browser/google_url_tracker_client.h"
#include "components/google/core/browser/google_url_tracker_infobar_delegate.h"
#include "components/google/core/browser/google_url_tracker_navigation_helper.h"
+#include "components/infobars/core/confirm_infobar_delegate.h"
#include "components/infobars/core/infobar.h"
#include "components/infobars/core/infobar_delegate.h"
#include "net/url_request/test_url_fetcher_factory.h"
@@ -185,6 +186,10 @@ class TestInfoBarManager : public infobars::InfoBarManager {
int GetActiveEntryID() override;
private:
+ // infobars::InfoBarManager:
+ scoped_ptr<infobars::InfoBar> CreateConfirmInfoBar(
+ scoped_ptr<ConfirmInfoBarDelegate> delegate) override;
+
int unique_id_;
DISALLOW_COPY_AND_ASSIGN(TestInfoBarManager);
};
@@ -200,6 +205,11 @@ int TestInfoBarManager::GetActiveEntryID() {
return unique_id_;
}
+scoped_ptr<infobars::InfoBar> TestInfoBarManager::CreateConfirmInfoBar(
+ scoped_ptr<ConfirmInfoBarDelegate> delegate) {
+ return make_scoped_ptr(new infobars::InfoBar(delegate.Pass()));
+}
+
} // namespace
// GoogleURLTrackerTest -------------------------------------------------------
« no previous file with comments | « components/google/core/browser/google_url_tracker_infobar_delegate.cc ('k') | components/infobars.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698