OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/file_util.h" | 5 #include "base/file_util.h" |
6 #include "base/scoped_temp_dir.h" | 6 #include "base/scoped_temp_dir.h" |
7 #include "base/scoped_vector.h" | 7 #include "base/scoped_vector.h" |
8 #include "chrome/browser/pref_service.h" | 8 #include "chrome/browser/prefs/pref_service.h" |
9 #include "chrome/browser/search_engines/template_url.h" | 9 #include "chrome/browser/search_engines/template_url.h" |
10 #include "chrome/browser/search_engines/template_url_prepopulate_data.h" | 10 #include "chrome/browser/search_engines/template_url_prepopulate_data.h" |
11 #include "chrome/common/pref_names.h" | 11 #include "chrome/common/pref_names.h" |
12 #include "chrome/test/testing_profile.h" | 12 #include "chrome/test/testing_profile.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 | 14 |
15 typedef testing::Test TemplateURLPrepopulateDataTest; | 15 typedef testing::Test TemplateURLPrepopulateDataTest; |
16 | 16 |
17 // Verifies the set of prepopulate data doesn't contain entries with duplicate | 17 // Verifies the set of prepopulate data doesn't contain entries with duplicate |
18 // ids. | 18 // ids. |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 EXPECT_EQ(L"foo", t_urls[0]->short_name()); | 123 EXPECT_EQ(L"foo", t_urls[0]->short_name()); |
124 EXPECT_EQ(L"fook", t_urls[0]->keyword()); | 124 EXPECT_EQ(L"fook", t_urls[0]->keyword()); |
125 EXPECT_EQ("foo.com", t_urls[0]->url()->GetHost()); | 125 EXPECT_EQ("foo.com", t_urls[0]->url()->GetHost()); |
126 EXPECT_EQ("foi.com", t_urls[0]->GetFavIconURL().host()); | 126 EXPECT_EQ("foi.com", t_urls[0]->GetFavIconURL().host()); |
127 EXPECT_EQ(1u, t_urls[0]->input_encodings().size()); | 127 EXPECT_EQ(1u, t_urls[0]->input_encodings().size()); |
128 EXPECT_EQ(1001, t_urls[0]->prepopulate_id()); | 128 EXPECT_EQ(1001, t_urls[0]->prepopulate_id()); |
129 EXPECT_EQ(TemplateURLPrepopulateData::SEARCH_ENGINE_GOOGLE, | 129 EXPECT_EQ(TemplateURLPrepopulateData::SEARCH_ENGINE_GOOGLE, |
130 t_urls[0]->search_engine_type()); | 130 t_urls[0]->search_engine_type()); |
131 EXPECT_EQ(0, t_urls[0]->logo_id()); | 131 EXPECT_EQ(0, t_urls[0]->logo_id()); |
132 } | 132 } |
OLD | NEW |