Chromium Code Reviews| 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 // Generate TemplateUrlData structure useful for tests filled with values | |
|
Peter Kasting
2016/12/22 20:49:04
Nit: Url -> URL
Alexander Yashkin
2016/12/23 19:44:09
Done
| |
| 13 // autogenerated from provider_name param. | |
| 14 std::unique_ptr<TemplateURLData> GenerateDummyTemplateURLData( | |
|
Peter Kasting
2016/12/22 20:49:04
I'm kinda surprised we don't have functions like t
Alexander Yashkin
2016/12/23 19:44:09
I think I saw several similar functions across cod
| |
| 15 const std::string& provider_name); | |
| 16 | |
| 17 // Checks that the two TemplateURLs are similar. Does not check the id, the | |
| 18 // date_created or the last_modified time. Neither pointer should be nullptr. | |
|
Peter Kasting
2016/12/22 20:49:04
Nit: In comments, just say "null".
Alexander Yashkin
2016/12/23 19:44:09
Done
| |
| 19 void ExpectSimilar(const TemplateURLData* expected, | |
| 20 const TemplateURLData* actual); | |
| 21 | |
| 22 #endif // COMPONENTS_SEARCH_ENGINES_SEARCH_ENGINES_TEST_UTIL_H_ | |
| OLD | NEW |