| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #import "ios/chrome/browser/ui/fullscreen_controller.h" |
| 6 |
| 5 #include "base/mac/scoped_nsobject.h" | 7 #include "base/mac/scoped_nsobject.h" |
| 6 #import "ios/chrome/browser/ui/fullscreen_controller.h" | |
| 7 #import "ios/web/public/test/fakes/test_web_view_content_view.h" | 8 #import "ios/web/public/test/fakes/test_web_view_content_view.h" |
| 8 #import "ios/web/public/web_state/crw_web_view_scroll_view_proxy.h" | |
| 9 #import "ios/web/public/web_state/ui/crw_web_view_content_view.h" | 9 #import "ios/web/public/web_state/ui/crw_web_view_content_view.h" |
| 10 #import "ios/web/web_state/crw_web_view_proxy_impl.h" | 10 #import "ios/web/public/web_state/ui/crw_web_view_scroll_view_proxy.h" |
| 11 #import "ios/web/web_state/ui/crw_web_controller.h" | 11 #import "ios/web/web_state/ui/crw_web_controller.h" |
| 12 #import "ios/web/web_state/ui/crw_web_view_proxy_impl.h" |
| 12 #include "testing/platform_test.h" | 13 #include "testing/platform_test.h" |
| 13 #import "third_party/ocmock/OCMock/OCMock.h" | 14 #import "third_party/ocmock/OCMock/OCMock.h" |
| 14 #include "third_party/ocmock/ocmock_extensions.h" | 15 #include "third_party/ocmock/ocmock_extensions.h" |
| 15 | 16 |
| 16 namespace { | 17 namespace { |
| 17 | 18 |
| 18 CGFloat kContentHeight = 5000.0; | 19 CGFloat kContentHeight = 5000.0; |
| 19 CGFloat kHeaderHeight = 42.0; | 20 CGFloat kHeaderHeight = 42.0; |
| 20 } | 21 } |
| 21 | 22 |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 [controller_ webViewScrollViewDidEndDragging:webViewScrollViewProxy_ | 370 [controller_ webViewScrollViewDidEndDragging:webViewScrollViewProxy_ |
| 370 willDecelerate:NO]; | 371 willDecelerate:NO]; |
| 371 EXPECT_TRUE(IsHeaderVisible()); | 372 EXPECT_TRUE(IsHeaderVisible()); |
| 372 | 373 |
| 373 // Hide the keyboard. | 374 // Hide the keyboard. |
| 374 [textField resignFirstResponder]; | 375 [textField resignFirstResponder]; |
| 375 EXPECT_TRUE(IsHeaderVisible()); | 376 EXPECT_TRUE(IsHeaderVisible()); |
| 376 } | 377 } |
| 377 | 378 |
| 378 } // namespace | 379 } // namespace |
| OLD | NEW |