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 |
| 13 // autogenerated from provider_name param. |
| 14 std::unique_ptr<TemplateURLData> GenerateDummyTemplateURLData( |
| 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. |
| 19 void ExpectSimilar(const TemplateURLData* expected, |
| 20 const TemplateURLData* actual); |
| 21 |
| 22 #endif // COMPONENTS_SEARCH_ENGINES_SEARCH_ENGINES_TEST_UTIL_H_ |
OLD | NEW |