OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef COMPONENTS_SEARCH_ENGINES_SEARCH_ENGINES_TEST_UTIL_H_ | |
6 #define COMPONENTS_SEARCH_ENGINES_SEARCH_ENGINES_TEST_UTIL_H_ | |
7 | |
8 #include <string> | |
9 | |
10 struct TemplateURLData; | |
11 | |
12 namespace policy { | |
13 class PolicyMap; | |
14 } | |
15 | |
16 // Generate TemplateUrlData structure useful for tests filled with values | |
17 // autogenerated from type param. | |
18 std::unique_ptr<TemplateURLData> GenerateDummyTemplateURLData( | |
19 const std::string& type); | |
vasilii
2016/11/30 14:00:03
Not clear what |type| is. From the implementation
Alexander Yashkin
2016/12/05 18:16:48
Changed type to provider_name. I think parameter i
| |
20 | |
21 // Checks that the two TemplateURLs are similar. Does not check the id, the | |
22 // date_created or the last_modified time. Neither pointer should be NULL. | |
23 void ExpectSimilar(const TemplateURLData* expected, | |
24 const TemplateURLData* actual); | |
25 | |
26 // Build default dearch policy for TemplateUrlData object. | |
vasilii
2016/11/30 14:00:03
s/dearch/search
Alexander Yashkin
2016/12/05 18:16:48
Fixed
| |
27 void BuildDefaultSearchPolicy(const TemplateURLData& data, | |
28 policy::PolicyMap* policy); | |
vasilii
2016/11/30 14:00:03
In what files do you use those functions? If it's
Alexander Yashkin
2016/12/05 18:16:48
Deleted this function.
| |
29 | |
30 #endif // COMPONENTS_SEARCH_ENGINES_SEARCH_ENGINES_TEST_UTIL_H_ | |
OLD | NEW |