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_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_TEST_UTIL_H_ | 5 #ifndef CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_TEST_UTIL_H_ |
6 #define CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_TEST_UTIL_H_ | 6 #define CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_TEST_UTIL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 | 33 |
34 // Sets up the data structures for this class (mirroring gtest standard | 34 // Sets up the data structures for this class (mirroring gtest standard |
35 // methods). | 35 // methods). |
36 void SetUp(); | 36 void SetUp(); |
37 | 37 |
38 // Cleans up data structures for this class (mirroring gtest standard | 38 // Cleans up data structures for this class (mirroring gtest standard |
39 // methods). | 39 // methods). |
40 void TearDown(); | 40 void TearDown(); |
41 | 41 |
42 // TemplateURLServiceObserver implemementation. | 42 // TemplateURLServiceObserver implemementation. |
43 virtual void OnTemplateURLServiceChanged(); | 43 virtual void OnTemplateURLServiceChanged() OVERRIDE; |
44 | 44 |
45 // Gets the observer count. | 45 // Gets the observer count. |
46 int GetObserverCount(); | 46 int GetObserverCount(); |
47 | 47 |
48 // Sets the observer count to 0. | 48 // Sets the observer count to 0. |
49 void ResetObserverCount(); | 49 void ResetObserverCount(); |
50 | 50 |
51 // Blocks the caller until the service has finished servicing all pending | 51 // Blocks the caller until the service has finished servicing all pending |
52 // requests. | 52 // requests. |
53 static void BlockTillServiceProcessesRequests(); | 53 static void BlockTillServiceProcessesRequests(); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 // properly. | 95 // properly. |
96 content::TestBrowserThread ui_thread_; | 96 content::TestBrowserThread ui_thread_; |
97 scoped_ptr<TemplateURLServiceTestingProfile> profile_; | 97 scoped_ptr<TemplateURLServiceTestingProfile> profile_; |
98 scoped_ptr<TestingTemplateURLService> model_; | 98 scoped_ptr<TestingTemplateURLService> model_; |
99 int changed_count_; | 99 int changed_count_; |
100 | 100 |
101 DISALLOW_COPY_AND_ASSIGN(TemplateURLServiceTestUtil); | 101 DISALLOW_COPY_AND_ASSIGN(TemplateURLServiceTestUtil); |
102 }; | 102 }; |
103 | 103 |
104 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_TEST_UTIL_H_ | 104 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_TEST_UTIL_H_ |
OLD | NEW |