OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 | 48 |
49 // Add a search engine based on a seed to the service at index |profile| and the | 49 // Add a search engine based on a seed to the service at index |profile| and the |
50 // verifier if it is used. | 50 // verifier if it is used. |
51 void AddSearchEngine(int profile, int seed); | 51 void AddSearchEngine(int profile, int seed); |
52 | 52 |
53 // Retrieves a search engine from the service at index |profile| with original | 53 // Retrieves a search engine from the service at index |profile| with original |
54 // keyword |keyword| and changes its user-visible fields. Does the same to the | 54 // keyword |keyword| and changes its user-visible fields. Does the same to the |
55 // verifier, if it is used. If profile -1 is specified, this only affects the | |
Raghu Simha
2011/11/16 01:14:41
All these changes involving |profile| == -1 might
SteveT
2011/11/16 15:43:32
Removed all these comments.
| |
55 // verifier, if it is used. | 56 // verifier, if it is used. |
56 void EditSearchEngine(int profile, | 57 void EditSearchEngine(int profile, |
57 const std::string& keyword, | 58 const std::string& keyword, |
58 const std::string& short_name, | 59 const std::string& short_name, |
59 const std::string& new_keyword, | 60 const std::string& new_keyword, |
60 const std::string& url); | 61 const std::string& url); |
61 | 62 |
62 // Deletes a search engine from the service at index |profile| with original | 63 // Deletes a search engine from the service at index |profile| with original |
63 // keyword |keyword|. Does the same to the verifier, if it is used. | 64 // keyword |keyword|. Does the same to the verifier, if it is used. If profile |
65 // -1 is specified, this only affects the verifier, if it is used. | |
64 void DeleteSearchEngineByKeyword(int profile, const string16 keyword); | 66 void DeleteSearchEngineByKeyword(int profile, const string16 keyword); |
65 | 67 |
66 // Deletes a search engine from the service at index |profile| which was | 68 // Deletes a search engine from the service at index |profile| which was |
67 // generated by seed |seed|. | 69 // generated by seed |seed|. If profile -1 is specified, this only affects the |
70 // verifier, if it is used. | |
68 void DeleteSearchEngineBySeed(int profile, int seed); | 71 void DeleteSearchEngineBySeed(int profile, int seed); |
69 | 72 |
70 // Change the search engine generated with |seed| in service at index |profile| | 73 // Change the search engine generated with |seed| in service at index |profile| |
71 // to be the new default. Does the same to the verifier, if it is used. | 74 // to be the new default. Does the same to the verifier, if it is used. If |
75 // profile -1 is specified, this only affects the verifier, if it is used. | |
72 void ChangeDefaultSearchProvider(int profile, int seed); | 76 void ChangeDefaultSearchProvider(int profile, int seed); |
73 | 77 |
74 } // namespace search_engines_helper | 78 } // namespace search_engines_helper |
75 | 79 |
76 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SEARCH_ENGINES_HELPER_H_ | 80 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SEARCH_ENGINES_HELPER_H_ |
OLD | NEW |