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

Side by Side Diff: chrome/browser/autocomplete/keyword_provider_unittest.cc

Issue 18263: Move search engines files into subdir (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 11 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/message_loop.h" 5 #include "base/message_loop.h"
6 #include "chrome/browser/autocomplete/keyword_provider.h" 6 #include "chrome/browser/autocomplete/keyword_provider.h"
7 #include "chrome/browser/template_url.h" 7 #include "chrome/browser/search_engines/template_url.h"
8 #include "chrome/browser/template_url_model.h" 8 #include "chrome/browser/search_engines/template_url_model.h"
9 #include "googleurl/src/gurl.h" 9 #include "googleurl/src/gurl.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 class KeywordProviderTest : public testing::Test { 12 class KeywordProviderTest : public testing::Test {
13 protected: 13 protected:
14 template<class ResultType> 14 template<class ResultType>
15 struct test_data { 15 struct test_data {
16 const std::wstring input; 16 const std::wstring input;
17 const size_t num_results; 17 const size_t num_results;
18 const ResultType output[3]; 18 const ResultType output[3];
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 model_->Add(template_url); 186 model_->Add(template_url);
187 ASSERT_TRUE(template_url == model_->GetTemplateURLForKeyword(keyword)); 187 ASSERT_TRUE(template_url == model_->GetTemplateURLForKeyword(keyword));
188 } 188 }
189 189
190 TEST_F(KeywordProviderTest, RemoveKeyword) { 190 TEST_F(KeywordProviderTest, RemoveKeyword) {
191 std::wstring url(L"http://aaaa/?aaaa=1&b={searchTerms}&c"); 191 std::wstring url(L"http://aaaa/?aaaa=1&b={searchTerms}&c");
192 model_->Remove(model_->GetTemplateURLForKeyword(L"aaaa")); 192 model_->Remove(model_->GetTemplateURLForKeyword(L"aaaa"));
193 ASSERT_TRUE(model_->GetTemplateURLForKeyword(L"aaaa") == NULL); 193 ASSERT_TRUE(model_->GetTemplateURLForKeyword(L"aaaa") == NULL);
194 } 194 }
195 195
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/keyword_provider.cc ('k') | chrome/browser/autocomplete/search_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698