Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Unified Diff: ios/chrome/browser/ui/settings/password_details_collection_view_controller_for_testing.h

Issue 2846253002: Add EGTests for passwords settings on iOS (Closed)
Patch Set: Comments Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/ui/settings/password_details_collection_view_controller_for_testing.h
diff --git a/ios/chrome/browser/ui/settings/password_details_collection_view_controller_for_testing.h b/ios/chrome/browser/ui/settings/password_details_collection_view_controller_for_testing.h
new file mode 100644
index 0000000000000000000000000000000000000000..5a1dc387ad2d116957220a435ef70c2b5f41cfb1
--- /dev/null
+++ b/ios/chrome/browser/ui/settings/password_details_collection_view_controller_for_testing.h
@@ -0,0 +1,20 @@
+// Copyright 2017 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 IOS_CHROME_BROWSER_UI_SETTINGS_PASSWORD_DETAILS_COLLECTION_VIEW_CONTROLLER_FOR_TESTING_H_
+#define IOS_CHROME_BROWSER_UI_SETTINGS_PASSWORD_DETAILS_COLLECTION_VIEW_CONTROLLER_FOR_TESTING_H_
+
+#import "ios/chrome/browser/ui/settings/password_details_collection_view_controller.h"
+
+@interface PasswordDetailsCollectionViewController (ForTesting)
+
+// Allows to replace a |reauthenticationModule| for a fake one in integration
+// tests, where the testing code cannot control the creation of the
+// controller.
+- (void)setReauthenticationModule:
+ (id<ReauthenticationProtocol>)reauthenticationModule;
+
+@end
+
+#endif // IOS_CHROME_BROWSER_UI_SETTINGS_PASSWORD_DETAILS_COLLECTION_VIEW_CONTROLLER_FOR_TESTING_H_

Powered by Google App Engine
This is Rietveld 408576698