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

Unified Diff: ios/chrome/browser/ui/ntp/new_tab_page_controller_unittest.mm

Issue 2889963002: [ObjC ARC] Converts ios/chrome/browser/ui/ntp:ntp_internal to ARC.
Patch Set: Moved testing method accessing ivars to a category Created 3 years, 7 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/ntp/new_tab_page_controller_unittest.mm
diff --git a/ios/chrome/browser/ui/ntp/new_tab_page_controller_unittest.mm b/ios/chrome/browser/ui/ntp/new_tab_page_controller_unittest.mm
index 2314916466bf0a6f944a1ac9db346b815501ddf0..4ff7717acc7815c429040b85051b8d314bfedd51 100644
--- a/ios/chrome/browser/ui/ntp/new_tab_page_controller_unittest.mm
+++ b/ios/chrome/browser/ui/ntp/new_tab_page_controller_unittest.mm
@@ -19,6 +19,7 @@
#include "ios/chrome/browser/sessions/ios_chrome_tab_restore_service_factory.h"
#import "ios/chrome/browser/sessions/test_session_service.h"
#import "ios/chrome/browser/tabs/tab_model.h"
+#import "ios/chrome/browser/ui/ntp/new_tab_page_controller_testing.h"
#import "ios/chrome/browser/ui/ntp/new_tab_page_view.h"
#include "ios/chrome/browser/ui/ui_util.h"
#include "ios/chrome/test/block_cleanup_test.h"
@@ -34,32 +35,6 @@
#error "This file requires ARC support."
#endif
-@interface NewTabPageController (TestSupport)
-- (id<NewTabPagePanelProtocol>)currentController;
-- (BookmarkHomeTabletNTPController*)bookmarkController;
-- (id<NewTabPagePanelProtocol>)incognitoController;
-@end
-
-@interface NewTabPageController (PrivateMethods)
-@property(nonatomic, retain) NewTabPageView* ntpView;
-@end
-
-@implementation NewTabPageController (TestSupport)
-
-- (id<NewTabPagePanelProtocol>)currentController {
- return currentController_;
-}
-
-- (BookmarkHomeTabletNTPController*)bookmarkController {
- return bookmarkController_.get();
-}
-
-- (id<NewTabPagePanelProtocol>)incognitoController {
- return incognitoController_;
-}
-
-@end
-
namespace {
class NewTabPageControllerTest : public BlockCleanupTest {
« no previous file with comments | « ios/chrome/browser/ui/ntp/new_tab_page_controller_testing.h ('k') | ios/chrome/browser/ui/ntp/new_tab_page_egtest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698