Chromium Code Reviews
Help | Chromium Project | Sign in
(12)

Side by Side Diff: chrome/browser/search_engines/template_url_unittest.cc

Issue 3273014: Fix build due to breakage introduced in r57918. (Closed)
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | 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-2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2010 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 #include "base/base_paths.h" 5 #include "base/base_paths.h"
6 #include "base/string_util.h" 6 #include "base/string_util.h"
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/rlz/rlz.h" 9 #include "chrome/browser/rlz/rlz.h"
10 #include "chrome/browser/search_engines/search_terms_data.h" 10 #include "chrome/browser/search_engines/search_terms_data.h"
(...skipping 11 matching lines...) Expand all
22 return google_base_url_; 22 return google_base_url_;
23 } 23 }
24 24
25 virtual std::string GetApplicationLocale() const { 25 virtual std::string GetApplicationLocale() const {
26 return "yy"; 26 return "yy";
27 } 27 }
28 28
29 #if defined(OS_WIN) && defined(GOOGLE_CHROME_BUILD) 29 #if defined(OS_WIN) && defined(GOOGLE_CHROME_BUILD)
30 // Returns the value for the Chrome Omnibox rlz. 30 // Returns the value for the Chrome Omnibox rlz.
31 virtual std::wstring GetRlzParameterValue() const { 31 virtual std::wstring GetRlzParameterValue() const {
32 return ""; 32 return L"";
33 } 33 }
34 #endif 34 #endif
35 35
36 private: 36 private:
37 std::string google_base_url_; 37 std::string google_base_url_;
38 38
39 DISALLOW_COPY_AND_ASSIGN(TestSearchTermsData); 39 DISALLOW_COPY_AND_ASSIGN(TestSearchTermsData);
40 }; 40 };
41 41
42 class TemplateURLTest : public testing::Test { 42 class TemplateURLTest : public testing::Test {
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 TEST_F(TemplateURLTest, ParseURLNestedParameter) { 533 TEST_F(TemplateURLTest, ParseURLNestedParameter) {
534 TemplateURLRef url_ref("{%s", 0, 0); 534 TemplateURLRef url_ref("{%s", 0, 0);
535 TemplateURLRef::Replacements replacements; 535 TemplateURLRef::Replacements replacements;
536 bool valid = false; 536 bool valid = false;
537 EXPECT_EQ("{", url_ref.ParseURL("{{searchTerms}", &replacements, &valid)); 537 EXPECT_EQ("{", url_ref.ParseURL("{{searchTerms}", &replacements, &valid));
538 ASSERT_EQ(1U, replacements.size()); 538 ASSERT_EQ(1U, replacements.size());
539 EXPECT_EQ(static_cast<size_t>(1), replacements[0].index); 539 EXPECT_EQ(static_cast<size_t>(1), replacements[0].index);
540 EXPECT_EQ(TemplateURLRef::SEARCH_TERMS, replacements[0].type); 540 EXPECT_EQ(TemplateURLRef::SEARCH_TERMS, replacements[0].type);
541 EXPECT_TRUE(valid); 541 EXPECT_TRUE(valid);
542 } 542 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld ec887be