Index: ios/public/provider/chrome/browser/signin/fake_chrome_identity_service.h |
diff --git a/ios/public/provider/chrome/browser/signin/fake_chrome_identity_service.h b/ios/public/provider/chrome/browser/signin/fake_chrome_identity_service.h |
index dbec6dc7185ff4b35734c2e165941fbb367b6fa7..1755d105521456041adcaa28055e745b47cb7f11 100644 |
--- a/ios/public/provider/chrome/browser/signin/fake_chrome_identity_service.h |
+++ b/ios/public/provider/chrome/browser/signin/fake_chrome_identity_service.h |
@@ -18,7 +18,7 @@ namespace ios { |
class FakeChromeIdentityService : public ChromeIdentityService { |
public: |
FakeChromeIdentityService(); |
- ~FakeChromeIdentityService(); |
+ virtual ~FakeChromeIdentityService(); |
// Convenience method that returns the instance of |
// |FakeChromeIdentityService| from the ChromeBrowserProvider. |
@@ -41,6 +41,15 @@ class FakeChromeIdentityService : public ChromeIdentityService { |
const std::set<std::string>& scopes, |
const ios::AccessTokenCallback& callback)); |
+ MOCK_METHOD2(GetAvatarForIdentity, |
+ void(ChromeIdentity* identity, GetAvatarCallback callback)); |
+ |
+ MOCK_METHOD1(GetCachedAvatarForIdentity, UIImage*(ChromeIdentity* identity)); |
+ |
+ MOCK_METHOD2(GetHostedDomainForIdentity, |
+ void(ChromeIdentity* identity, |
+ GetHostedDomainCallback callback)); |
+ |
MOCK_METHOD1(GetMDMDeviceStatus, |
ios::MDMDeviceStatus(NSDictionary* user_info)); |
@@ -49,6 +58,9 @@ class FakeChromeIdentityService : public ChromeIdentityService { |
NSDictionary* user_info, |
ios::MDMStatusCallback callback)); |
+ // Sets up the mock methods for integration tests. |
+ void SetUpForIntegrationTests(); |
+ |
// Adds the identities given their name. |
void AddIdentities(NSArray* identitiesNames); |