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

Unified Diff: chrome/browser/google/google_url_tracker_unittest.cc

Issue 316203003: Componentize GoogleURLTracker(InfoBarDelegate,MapEntry,NavHelper) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits Created 6 years, 6 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/google/google_url_tracker_unittest.cc
diff --git a/chrome/browser/google/google_url_tracker_unittest.cc b/chrome/browser/google/google_url_tracker_unittest.cc
index 59ac6c019e9ee43fea995de80c6100138764e762..f4b550373ff99ce0e7ba4388ebd4372dabf90e73 100644
--- a/chrome/browser/google/google_url_tracker_unittest.cc
+++ b/chrome/browser/google/google_url_tracker_unittest.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/google/google_url_tracker.h"
+#include "components/google/core/browser/google_url_tracker.h"
#include <set>
#include <string>
@@ -11,11 +11,12 @@
#include "base/message_loop/message_loop.h"
#include "base/prefs/pref_service.h"
#include "chrome/browser/google/google_url_tracker_factory.h"
-#include "chrome/browser/google/google_url_tracker_infobar_delegate.h"
-#include "chrome/browser/google/google_url_tracker_navigation_helper.h"
+#include "chrome/browser/google/google_util.h"
#include "chrome/test/base/testing_profile.h"
#include "components/google/core/browser/google_pref_names.h"
#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/infobar.h"
#include "components/infobars/core/infobar_delegate.h"
#include "content/public/test/test_browser_thread_bundle.h"
@@ -79,6 +80,8 @@ class TestGoogleURLTrackerClient : public GoogleURLTrackerClient {
virtual bool IsBackgroundNetworkingEnabled() OVERRIDE;
virtual PrefService* GetPrefs() OVERRIDE;
virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE;
+ virtual bool IsGoogleDomainURL(const GURL& url) OVERRIDE;
+ virtual GURL AppendGoogleLocaleParam(const GURL& url) OVERRIDE;
private:
Profile* profile_;
@@ -115,6 +118,18 @@ net::URLRequestContextGetter* TestGoogleURLTrackerClient::GetRequestContext() {
return profile_->GetRequestContext();
}
+bool TestGoogleURLTrackerClient::IsGoogleDomainURL(const GURL& url) {
+ return google_util::IsGoogleDomainUrl(
+ url,
+ google_util::DISALLOW_SUBDOMAIN,
+ google_util::DISALLOW_NON_STANDARD_PORTS);
+}
+
+GURL TestGoogleURLTrackerClient::AppendGoogleLocaleParam(const GURL& url) {
+ return google_util::AppendGoogleLocaleParam(url);
+}
+
+
// TestGoogleURLTrackerNavigationHelper ---------------------------------------
class TestGoogleURLTrackerNavigationHelper
« no previous file with comments | « chrome/browser/google/google_url_tracker_navigation_helper_impl.cc ('k') | chrome/browser/google/google_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698