Index: components/password_manager/core/browser/mock_affiliation_consumer.h |
diff --git a/components/password_manager/core/browser/mock_affiliation_consumer.h b/components/password_manager/core/browser/mock_affiliation_consumer.h |
deleted file mode 100644 |
index 146e299521873e7dba917876bbec05861eba7d40..0000000000000000000000000000000000000000 |
--- a/components/password_manager/core/browser/mock_affiliation_consumer.h |
+++ /dev/null |
@@ -1,39 +0,0 @@ |
-// Copyright 2015 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-#ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_MOCK_AFFILIATION_CONSUMER_H_ |
-#define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_MOCK_AFFILIATION_CONSUMER_H_ |
- |
-#include "base/macros.h" |
-#include "components/password_manager/core/browser/affiliation_service.h" |
-#include "components/password_manager/core/browser/affiliation_utils.h" |
-#include "testing/gmock/include/gmock/gmock.h" |
- |
-namespace password_manager { |
- |
-// A mock consumer of AffiliationService::GetAffiliations(). |
-class MockAffiliationConsumer { |
- public: |
- MockAffiliationConsumer(); |
- ~MockAffiliationConsumer(); |
- |
- // Expects that the result callback will be called exactly once and that it |
- // will indicate success and return |expected_result|. |
- void ExpectSuccessWithResult(const AffiliatedFacets& expected_result); |
- |
- // Expects that the result callback will be called exactly once and that it |
- // will indicate a failed lookup. |
- void ExpectFailure(); |
- |
- AffiliationService::ResultCallback GetResultCallback(); |
- |
- private: |
- MOCK_METHOD2(OnResultCallback, void(const AffiliatedFacets&, bool)); |
- |
- DISALLOW_COPY_AND_ASSIGN(MockAffiliationConsumer); |
-}; |
- |
-} // namespace password_manager |
- |
-#endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_MOCK_AFFILIATION_CONSUMER_H_ |