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

Side by Side Diff: ios/chrome/browser/tabs/tab_unittest.mm

Issue 2901633002: Replaced NavigationContext::IsErrorPage with NavigationContext::GetError (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ios/chrome/browser/tabs/tab.mm ('k') | ios/web/public/test/fakes/crw_test_web_state_observer.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698