| Index: chrome/browser/google/google_util_unittest.cc
|
| diff --git a/chrome/browser/google/google_util_unittest.cc b/chrome/browser/google/google_util_unittest.cc
|
| index 174b91cd5e91103d3c9eec648767da721702324f..fa3db0ae37aa4c04d1effc65500ad4fef53183a8 100644
|
| --- a/chrome/browser/google/google_util_unittest.cc
|
| +++ b/chrome/browser/google/google_util_unittest.cc
|
| @@ -376,53 +376,3 @@ TEST(GoogleUtilTest, GoogleDomains) {
|
| google_util::DISALLOW_SUBDOMAIN,
|
| google_util::DISALLOW_NON_STANDARD_PORTS));
|
| }
|
| -
|
| -TEST(GoogleUtilTest, SearchTerms) {
|
| - // Simple searches.
|
| - EXPECT_EQ(string16(), google_util::GetSearchTermsFromGoogleSearchURL(
|
| - "http://google.com/search?q=tractor+supply"));
|
| - EXPECT_EQ(ASCIIToUTF16("tractor supply"),
|
| - google_util::GetSearchTermsFromGoogleSearchURL(
|
| - "http://google.com/search?q=tractor+supply&espv=1"));
|
| - // espv=1 only applies in query.
|
| - EXPECT_EQ(string16(), google_util::GetSearchTermsFromGoogleSearchURL(
|
| - "http://google.com/search?q=potato#espv=1"));
|
| -
|
| - // Instant searches.
|
| - EXPECT_EQ(string16(), google_util::GetSearchTermsFromGoogleSearchURL(
|
| - "http://google.com/webhp#q=tractor+supply"));
|
| - EXPECT_EQ(ASCIIToUTF16("tractor supply"),
|
| - google_util::GetSearchTermsFromGoogleSearchURL(
|
| - "http://google.com/webhp?espv=1#q=tractor+supply"));
|
| - // espv=1 only applies in query.
|
| - EXPECT_EQ(string16(), google_util::GetSearchTermsFromGoogleSearchURL(
|
| - "http://google.com/webhp?#espv=1&q=potato"));
|
| -
|
| - // Both query and ref components have a search term.
|
| - EXPECT_EQ(ASCIIToUTF16("tractor supply"),
|
| - google_util::GetSearchTermsFromGoogleSearchURL(
|
| - "http://google.com/webhp?q=potato&espv=1#q=tractor+supply"));
|
| -
|
| - // Blank queries.
|
| - EXPECT_EQ(string16(), google_util::GetSearchTermsFromGoogleSearchURL(
|
| - "http://google.com/search?q=&q=potato&espv=1"));
|
| - EXPECT_EQ(string16(), google_util::GetSearchTermsFromGoogleSearchURL(
|
| - "http://google.com/webhp?espv=1#q=&q=tractor+supply"));
|
| -
|
| - // Multiple non-empty queries.
|
| - EXPECT_EQ(ASCIIToUTF16("tractor supply"),
|
| - google_util::GetSearchTermsFromGoogleSearchURL(
|
| - "http://google.com/search?q=tractor+supply&q=potato&espv=1"));
|
| - EXPECT_EQ(ASCIIToUTF16("tractor supply"),
|
| - google_util::GetSearchTermsFromGoogleSearchURL(
|
| - "http://google.com/webhp?espv=1#q=tractor+supply&q=potato"));
|
| -
|
| - // Blank terms in ref override non-blank terms in query.
|
| - EXPECT_EQ(string16(), google_util::GetSearchTermsFromGoogleSearchURL(
|
| - "http://google.com/search?q=potato&espv=1#q="));
|
| -
|
| - // Blank terms in query do not override non-blank terms in ref.
|
| - EXPECT_EQ(ASCIIToUTF16("tractor supply"),
|
| - google_util::GetSearchTermsFromGoogleSearchURL(
|
| - "http://google.com/search?q=&espv=1#q=tractor+supply"));
|
| -}
|
|
|