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

Side by Side Diff: components/search_engines/search_host_to_urls_map_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 "base/basictypes.h" 5 #include <stddef.h>
6
7 #include "base/macros.h"
6 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
7 #include "components/search_engines/search_host_to_urls_map.h" 9 #include "components/search_engines/search_host_to_urls_map.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 "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
11 13
12 typedef SearchHostToURLsMap::TemplateURLSet TemplateURLSet; 14 typedef SearchHostToURLsMap::TemplateURLSet TemplateURLSet;
13 15
14 // Basic functionality for the SearchHostToURLsMap tests. 16 // Basic functionality for the SearchHostToURLsMap tests.
15 class SearchHostToURLsMapTest : public testing::Test { 17 class SearchHostToURLsMapTest : public testing::Test {
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 100
99 for (size_t i = 0; i < arraysize(found_urls); ++i) 101 for (size_t i = 0; i < arraysize(found_urls); ++i)
100 ASSERT_TRUE(found_urls[i]); 102 ASSERT_TRUE(found_urls[i]);
101 } 103 }
102 104
103 TEST_F(SearchHostToURLsMapTest, GetURLsForUnknownHost) { 105 TEST_F(SearchHostToURLsMapTest, GetURLsForUnknownHost) {
104 const SearchHostToURLsMap::TemplateURLSet* urls = 106 const SearchHostToURLsMap::TemplateURLSet* urls =
105 provider_map_->GetURLsForHost("a" + host_); 107 provider_map_->GetURLsForHost("a" + host_);
106 ASSERT_TRUE(urls == NULL); 108 ASSERT_TRUE(urls == NULL);
107 } 109 }
OLDNEW
« no previous file with comments | « components/search_engines/search_host_to_urls_map.h ('k') | components/search_engines/search_terms_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698