OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_SEARCH_ENGINES_HELPER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_SEARCH_ENGINES_HELPER_H_ |
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_SEARCH_ENGINES_HELPER_H_ | 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_SEARCH_ENGINES_HELPER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 // Returns true iff all TemplateURLServices match with the verifier. | 42 // Returns true iff all TemplateURLServices match with the verifier. |
43 bool AllServicesMatch(); | 43 bool AllServicesMatch(); |
44 | 44 |
45 // Create a TemplateURL with some test values based on |seed|. The caller owns | 45 // Create a TemplateURL with some test values based on |seed|. The caller owns |
46 // the returned TemplateURL*. | 46 // the returned TemplateURL*. |
47 TemplateURL* CreateTestTemplateURL(int seed); | 47 TemplateURL* CreateTestTemplateURL(int seed); |
48 TemplateURL* CreateTestTemplateURL(int seed, | 48 TemplateURL* CreateTestTemplateURL(int seed, |
49 const string16& keyword, | 49 const string16& keyword, |
50 const std::string& sync_guid); | 50 const std::string& sync_guid); |
51 TemplateURL* CreateTestTemplateURL(int seed, | 51 TemplateURL* CreateTestTemplateURL(int seed, |
| 52 const string16& keyword, |
52 const std::string& url, | 53 const std::string& url, |
53 const string16& keyword, | |
54 const std::string& sync_guid); | 54 const std::string& sync_guid); |
55 | 55 |
56 // Add a search engine based on a seed to the service at index |profile| and the | 56 // Add a search engine based on a seed to the service at index |profile| and the |
57 // verifier if it is used. | 57 // verifier if it is used. |
58 void AddSearchEngine(int profile, int seed); | 58 void AddSearchEngine(int profile, int seed); |
59 | 59 |
60 // Retrieves a search engine from the service at index |profile| with original | 60 // Retrieves a search engine from the service at index |profile| with original |
61 // keyword |keyword| and changes its user-visible fields. Does the same to the | 61 // keyword |keyword| and changes its user-visible fields. Does the same to the |
62 // verifier, if it is used. | 62 // verifier, if it is used. |
63 void EditSearchEngine(int profile, | 63 void EditSearchEngine(int profile, |
(...skipping 10 matching lines...) Expand all Loading... |
74 // generated by seed |seed|. | 74 // generated by seed |seed|. |
75 void DeleteSearchEngineBySeed(int profile, int seed); | 75 void DeleteSearchEngineBySeed(int profile, int seed); |
76 | 76 |
77 // Change the search engine generated with |seed| in service at index |profile| | 77 // Change the search engine generated with |seed| in service at index |profile| |
78 // to be the new default. Does the same to the verifier, if it is used. | 78 // to be the new default. Does the same to the verifier, if it is used. |
79 void ChangeDefaultSearchProvider(int profile, int seed); | 79 void ChangeDefaultSearchProvider(int profile, int seed); |
80 | 80 |
81 } // namespace search_engines_helper | 81 } // namespace search_engines_helper |
82 | 82 |
83 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SEARCH_ENGINES_HELPER_H_ | 83 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SEARCH_ENGINES_HELPER_H_ |
OLD | NEW |