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

Side by Side Diff: components/search_engines/template_url_parser_unittest.cc

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 4 years, 12 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/files/file_util.h" 5 #include "base/files/file_util.h"
6 #include "base/logging.h" 6 #include "base/logging.h"
7 #include "base/macros.h"
7 #include "base/path_service.h" 8 #include "base/path_service.h"
8 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/common/chrome_paths.h" 10 #include "chrome/common/chrome_paths.h"
10 #include "components/search_engines/search_terms_data.h" 11 #include "components/search_engines/search_terms_data.h"
11 #include "components/search_engines/template_url.h" 12 #include "components/search_engines/template_url.h"
12 #include "components/search_engines/template_url_parser.h" 13 #include "components/search_engines/template_url_parser.h"
13 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
14 15
15 using base::ASCIIToUTF16; 16 using base::ASCIIToUTF16;
16 17
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 EXPECT_EQ(ASCIIToUTF16("Yahoo"), template_url_->short_name()); 253 EXPECT_EQ(ASCIIToUTF16("Yahoo"), template_url_->short_name());
253 EXPECT_TRUE(template_url_->url_ref().SupportsReplacement(SearchTermsData())); 254 EXPECT_TRUE(template_url_->url_ref().SupportsReplacement(SearchTermsData()));
254 EXPECT_TRUE(template_url_->suggestions_url().empty()); 255 EXPECT_TRUE(template_url_->suggestions_url().empty());
255 EXPECT_EQ("http://search.yahoo.com/search?p={searchTerms}&ei=UTF-8", 256 EXPECT_EQ("http://search.yahoo.com/search?p={searchTerms}&ei=UTF-8",
256 template_url_->url()); 257 template_url_->url());
257 ASSERT_EQ(1U, template_url_->input_encodings().size()); 258 ASSERT_EQ(1U, template_url_->input_encodings().size());
258 EXPECT_EQ("UTF-8", template_url_->input_encodings()[0]); 259 EXPECT_EQ("UTF-8", template_url_->input_encodings()[0]);
259 EXPECT_EQ(GURL("http://search.yahoo.com/favicon.ico"), 260 EXPECT_EQ(GURL("http://search.yahoo.com/favicon.ico"),
260 template_url_->favicon_url()); 261 template_url_->favicon_url());
261 } 262 }
OLDNEW
« no previous file with comments | « components/search_engines/template_url_parser.cc ('k') | components/search_engines/template_url_prepopulate_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698