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

Side by Side Diff: components/search_engines/template_url_service_util_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <stddef.h>
6
5 #include "base/memory/scoped_vector.h" 7 #include "base/memory/scoped_vector.h"
6 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
7 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
8 #include "components/search_engines/search_terms_data.h" 10 #include "components/search_engines/search_terms_data.h"
9 #include "components/search_engines/template_url.h" 11 #include "components/search_engines/template_url.h"
10 #include "components/search_engines/template_url_service.h" 12 #include "components/search_engines/template_url_service.h"
11 #include "components/search_engines/util.h" 13 #include "components/search_engines/util.h"
12 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
13 15
14 namespace { 16 namespace {
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // Verify that the expected local TURLs survived the process. 95 // Verify that the expected local TURLs survived the process.
94 EXPECT_EQ(local_turls.size(), 96 EXPECT_EQ(local_turls.size(),
95 prepopulated_turls.size() + num_non_prepopulated_urls); 97 prepopulated_turls.size() + num_non_prepopulated_urls);
96 for (TemplateURLService::TemplateURLVector::const_iterator itr = 98 for (TemplateURLService::TemplateURLVector::const_iterator itr =
97 local_turls.begin(); itr != local_turls.end(); ++itr) { 99 local_turls.begin(); itr != local_turls.end(); ++itr) {
98 EXPECT_TRUE(base::StartsWith((*itr)->keyword(), 100 EXPECT_TRUE(base::StartsWith((*itr)->keyword(),
99 base::ASCIIToUTF16("winner"), 101 base::ASCIIToUTF16("winner"),
100 base::CompareCase::SENSITIVE)); 102 base::CompareCase::SENSITIVE));
101 } 103 }
102 } 104 }
OLDNEW
« no previous file with comments | « components/search_engines/template_url_service_unittest.cc ('k') | components/search_engines/template_url_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698