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

Unified Diff: ios/chrome/browser/find_in_page/find_tab_helper_unittest.mm

Issue 2654433007: [ios] Moves find-in-page code out of Tab and into FindTabHelper. (Closed)
Patch Set: Review. Created 3 years, 10 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
« no previous file with comments | « ios/chrome/browser/find_in_page/find_tab_helper.mm ('k') | ios/chrome/browser/tabs/tab.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/find_in_page/find_tab_helper_unittest.mm
diff --git a/ios/chrome/browser/find_in_page/find_tab_helper_unittest.mm b/ios/chrome/browser/find_in_page/find_tab_helper_unittest.mm
new file mode 100644
index 0000000000000000000000000000000000000000..414d8ad1e175b0a50d191b912dea3878c92542a5
--- /dev/null
+++ b/ios/chrome/browser/find_in_page/find_tab_helper_unittest.mm
@@ -0,0 +1,31 @@
+// 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.
+
+#import "ios/chrome/browser/find_in_page/find_tab_helper.h"
+
+#include "base/macros.h"
+#import "ios/web/public/test/fakes/test_web_state.h"
+#import "ios/web/public/test/web_test.h"
+
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
+// Test fixture for the FindTabHelper class.
+class FindTabHelperTest : public web::WebTest {
+ public:
+ FindTabHelperTest() { FindTabHelper::CreateForWebState(&web_state_, nil); }
+ ~FindTabHelperTest() override = default;
+
+ protected:
+ web::TestWebState web_state_;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(FindTabHelperTest);
+};
+
+// Tests that the helper's FindInPageController exists.
+TEST_F(FindTabHelperTest, ControllerExists) {
+ DCHECK(FindTabHelper::FromWebState(&web_state_)->GetController());
+}
« no previous file with comments | « ios/chrome/browser/find_in_page/find_tab_helper.mm ('k') | ios/chrome/browser/tabs/tab.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698