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_CHROMEOS_GDATA_GDATA_CONTACTS_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_CONTACTS_SERVICE_H_ |
6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_CONTACTS_SERVICE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_CONTACTS_SERVICE_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 RewritePhotoUrlCallback; | 64 RewritePhotoUrlCallback; |
65 | 65 |
66 explicit GDataContactsService(Profile* profile); | 66 explicit GDataContactsService(Profile* profile); |
67 virtual ~GDataContactsService(); | 67 virtual ~GDataContactsService(); |
68 | 68 |
69 GDataAuthService* auth_service_for_testing(); | 69 GDataAuthService* auth_service_for_testing(); |
70 | 70 |
71 const std::string& cached_my_contacts_group_id_for_testing() const { | 71 const std::string& cached_my_contacts_group_id_for_testing() const { |
72 return cached_my_contacts_group_id_; | 72 return cached_my_contacts_group_id_; |
73 } | 73 } |
| 74 void clear_cached_my_contacts_group_id_for_testing() { |
| 75 cached_my_contacts_group_id_.clear(); |
| 76 } |
74 | 77 |
75 void set_max_photo_downloads_per_second_for_testing(int max_downloads) { | 78 void set_max_photo_downloads_per_second_for_testing(int max_downloads) { |
76 max_photo_downloads_per_second_ = max_downloads; | 79 max_photo_downloads_per_second_ = max_downloads; |
77 } | 80 } |
78 void set_photo_download_timer_interval_for_testing(base::TimeDelta interval) { | 81 void set_photo_download_timer_interval_for_testing(base::TimeDelta interval) { |
79 photo_download_timer_interval_ = interval; | 82 photo_download_timer_interval_ = interval; |
80 } | 83 } |
81 void set_groups_feed_url_for_testing(const GURL& url) { | 84 void set_groups_feed_url_for_testing(const GURL& url) { |
82 groups_feed_url_for_testing_ = url; | 85 groups_feed_url_for_testing_ = url; |
83 } | 86 } |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 // This is needed for tests that serve static feed data from a host/port | 132 // This is needed for tests that serve static feed data from a host/port |
130 // that's only known at runtime. | 133 // that's only known at runtime. |
131 RewritePhotoUrlCallback rewrite_photo_url_callback_for_testing_; | 134 RewritePhotoUrlCallback rewrite_photo_url_callback_for_testing_; |
132 | 135 |
133 DISALLOW_COPY_AND_ASSIGN(GDataContactsService); | 136 DISALLOW_COPY_AND_ASSIGN(GDataContactsService); |
134 }; | 137 }; |
135 | 138 |
136 } // namespace gdata | 139 } // namespace gdata |
137 | 140 |
138 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_CONTACTS_SERVICE_H_ | 141 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_CONTACTS_SERVICE_H_ |
OLD | NEW |