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

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

Issue 324283003: Move search_terms_data to components/search_engines (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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 | Annotate | Revision Log
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/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/memory/scoped_ptr.h" 6 #include "base/memory/scoped_ptr.h"
7 #include "chrome/browser/search_engines/search_host_to_urls_map.h" 7 #include "chrome/browser/search_engines/search_host_to_urls_map.h"
8 #include "chrome/browser/search_engines/search_terms_data.h"
9 #include "chrome/browser/search_engines/template_url.h" 8 #include "chrome/browser/search_engines/template_url.h"
9 #include "chrome/browser/search_engines/ui_thread_search_terms_data.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 typedef SearchHostToURLsMap::TemplateURLSet TemplateURLSet; 12 typedef SearchHostToURLsMap::TemplateURLSet TemplateURLSet;
13 13
14 // Basic functionality for the SearchHostToURLsMap tests. 14 // Basic functionality for the SearchHostToURLsMap tests.
15 class SearchHostToURLsMapTest : public testing::Test { 15 class SearchHostToURLsMapTest : public testing::Test {
16 public: 16 public:
17 SearchHostToURLsMapTest() {} 17 SearchHostToURLsMapTest() {}
18 18
19 virtual void SetUp(); 19 virtual void SetUp();
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 101
102 for (size_t i = 0; i < arraysize(found_urls); ++i) 102 for (size_t i = 0; i < arraysize(found_urls); ++i)
103 ASSERT_TRUE(found_urls[i]); 103 ASSERT_TRUE(found_urls[i]);
104 } 104 }
105 105
106 TEST_F(SearchHostToURLsMapTest, GetURLsForUnknownHost) { 106 TEST_F(SearchHostToURLsMapTest, GetURLsForUnknownHost) {
107 const SearchHostToURLsMap::TemplateURLSet* urls = 107 const SearchHostToURLsMap::TemplateURLSet* urls =
108 provider_map_->GetURLsForHost("a" + host_); 108 provider_map_->GetURLsForHost("a" + host_);
109 ASSERT_TRUE(urls == NULL); 109 ASSERT_TRUE(urls == NULL);
110 } 110 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698