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

Side by Side Diff: chrome/browser/google_util.h

Issue 174179: Mock the LinkDoctor for tests. Should greatly decrease ErrorPage test flakiness. (Closed)
Patch Set: sync with trunk Created 11 years, 3 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/errorpage_uitest.cc ('k') | chrome/browser/google_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Some Google related utility functions. 5 // Some Google related utility functions.
6 6
7 #ifndef CHROME_BROWSER_GOOGLE_UTIL_H__ 7 #ifndef CHROME_BROWSER_GOOGLE_UTIL_H__
8 #define CHROME_BROWSER_GOOGLE_UTIL_H__ 8 #define CHROME_BROWSER_GOOGLE_UTIL_H__
9 9
10 class GURL; 10 class GURL;
11 11
12 namespace google_util { 12 namespace google_util {
13 13
14 extern const char kLinkDoctorBaseURL[];
15
14 // Adds the Google locale string to the URL (e.g., hl=en-US). This does not 16 // Adds the Google locale string to the URL (e.g., hl=en-US). This does not
15 // check to see if the param already exists. 17 // check to see if the param already exists.
16 GURL AppendGoogleLocaleParam(const GURL& url); 18 GURL AppendGoogleLocaleParam(const GURL& url);
17 19
18 // Adds the Google TLD string to the URL (e.g., sd=com). This does not 20 // Adds the Google TLD string to the URL (e.g., sd=com). This does not
19 // check to see if the param already exists. 21 // check to see if the param already exists.
20 GURL AppendGoogleTLDParam(const GURL& url); 22 GURL AppendGoogleTLDParam(const GURL& url);
21 23
22 } // namespace google_util 24 } // namespace google_util
23 25
24 #endif // CHROME_BROWSER_GOOGLE_UTIL_H__ 26 #endif // CHROME_BROWSER_GOOGLE_UTIL_H__
OLDNEW
« no previous file with comments | « chrome/browser/errorpage_uitest.cc ('k') | chrome/browser/google_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698