| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 <UIKit/UIKit.h> | 5 #import <UIKit/UIKit.h> |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 #import "ios/public/provider/chrome/browser/native_app_launcher/fake_native_app_
metadata.h" | 40 #import "ios/public/provider/chrome/browser/native_app_launcher/fake_native_app_
metadata.h" |
| 41 #import "ios/public/provider/chrome/browser/native_app_launcher/fake_native_app_
whitelist_manager.h" | 41 #import "ios/public/provider/chrome/browser/native_app_launcher/fake_native_app_
whitelist_manager.h" |
| 42 #include "ios/public/provider/chrome/browser/test_chrome_browser_provider.h" | 42 #include "ios/public/provider/chrome/browser/test_chrome_browser_provider.h" |
| 43 #import "ios/testing/ocmock_complex_type_helper.h" | 43 #import "ios/testing/ocmock_complex_type_helper.h" |
| 44 #import "ios/web/navigation/crw_session_controller.h" | 44 #import "ios/web/navigation/crw_session_controller.h" |
| 45 #import "ios/web/navigation/navigation_manager_impl.h" | 45 #import "ios/web/navigation/navigation_manager_impl.h" |
| 46 #include "ios/web/public/navigation_item.h" | 46 #include "ios/web/public/navigation_item.h" |
| 47 #import "ios/web/public/navigation_manager.h" | 47 #import "ios/web/public/navigation_manager.h" |
| 48 #include "ios/web/public/referrer.h" | 48 #include "ios/web/public/referrer.h" |
| 49 #include "ios/web/public/test/test_web_thread_bundle.h" | 49 #include "ios/web/public/test/test_web_thread_bundle.h" |
| 50 #include "ios/web/web_state/navigation_context_impl.h" | 50 #import "ios/web/web_state/navigation_context_impl.h" |
| 51 #import "ios/web/web_state/ui/crw_web_controller.h" | 51 #import "ios/web/web_state/ui/crw_web_controller.h" |
| 52 #import "ios/web/web_state/web_state_impl.h" | 52 #import "ios/web/web_state/web_state_impl.h" |
| 53 #import "net/base/mac/url_conversions.h" | 53 #import "net/base/mac/url_conversions.h" |
| 54 #include "net/http/http_response_headers.h" | 54 #include "net/http/http_response_headers.h" |
| 55 #include "testing/gtest/include/gtest/gtest.h" | 55 #include "testing/gtest/include/gtest/gtest.h" |
| 56 #include "testing/gtest_mac.h" | 56 #include "testing/gtest_mac.h" |
| 57 #import "third_party/ocmock/OCMock/OCMock.h" | 57 #import "third_party/ocmock/OCMock/OCMock.h" |
| 58 | 58 |
| 59 using web::WebStateImpl; | 59 using web::WebStateImpl; |
| 60 | 60 |
| (...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 593 [[FakeNativeAppMetadata alloc] init]); | 593 [[FakeNativeAppMetadata alloc] init]); |
| 594 | 594 |
| 595 // Turn auto open on. | 595 // Turn auto open on. |
| 596 [metadata setShouldAutoOpenLinks:YES]; | 596 [metadata setShouldAutoOpenLinks:YES]; |
| 597 int expectedCallCount = 2; | 597 int expectedCallCount = 2; |
| 598 TestOpenNativeAppURL(testURL, NO, expectedCallCount, NO); | 598 TestOpenNativeAppURL(testURL, NO, expectedCallCount, NO); |
| 599 EXPECT_FALSE([metadata shouldAutoOpenLinks]); | 599 EXPECT_FALSE([metadata shouldAutoOpenLinks]); |
| 600 } | 600 } |
| 601 | 601 |
| 602 } // namespace | 602 } // namespace |
| OLD | NEW |