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

Side by Side Diff: ios/web/navigation/crw_session_controller_unittest.mm

Issue 2614443004: [ios] Moved all web mocks to ios/web/public/test/fakes. (Closed)
Patch Set: Moved test_redirect_observer back Created 3 years, 11 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 "ios/web/navigation/crw_session_controller.h" 5 #import "ios/web/navigation/crw_session_controller.h"
6 6
7 #import <Foundation/Foundation.h> 7 #import <Foundation/Foundation.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #import "base/mac/scoped_nsobject.h" 12 #import "base/mac/scoped_nsobject.h"
13 #include "base/memory/ptr_util.h" 13 #include "base/memory/ptr_util.h"
14 #include "base/strings/sys_string_conversions.h" 14 #include "base/strings/sys_string_conversions.h"
15 #import "ios/web/navigation/crw_session_controller+private_constructors.h" 15 #import "ios/web/navigation/crw_session_controller+private_constructors.h"
16 #import "ios/web/navigation/crw_session_entry.h" 16 #import "ios/web/navigation/crw_session_entry.h"
17 #import "ios/web/navigation/navigation_item_impl.h" 17 #import "ios/web/navigation/navigation_item_impl.h"
18 #include "ios/web/public/referrer.h" 18 #include "ios/web/public/referrer.h"
19 #include "ios/web/public/test/test_browser_state.h" 19 #include "ios/web/public/test/fakes/test_browser_state.h"
20 #include "ios/web/public/test/test_web_thread_bundle.h" 20 #include "ios/web/public/test/test_web_thread_bundle.h"
21 #import "net/base/mac/url_conversions.h" 21 #import "net/base/mac/url_conversions.h"
22 #include "testing/gtest/include/gtest/gtest.h" 22 #include "testing/gtest/include/gtest/gtest.h"
23 #import "testing/gtest_mac.h" 23 #import "testing/gtest_mac.h"
24 #include "testing/platform_test.h" 24 #include "testing/platform_test.h"
25 25
26 @interface CRWSessionController (Testing) 26 @interface CRWSessionController (Testing)
27 - (const GURL&)URLForSessionAtIndex:(NSUInteger)index; 27 - (const GURL&)URLForSessionAtIndex:(NSUInteger)index;
28 - (const GURL&)currentURL; 28 - (const GURL&)currentURL;
29 @end 29 @end
(...skipping 1092 matching lines...) Expand 10 before | Expand all | Expand 10 after
1122 [session_controller_ commitPendingEntry]; 1122 [session_controller_ commitPendingEntry];
1123 [session_controller_ addPendingEntry:GURL("http://www.example.com/0") 1123 [session_controller_ addPendingEntry:GURL("http://www.example.com/0")
1124 referrer:MakeReferrer("http://www.example.com/b") 1124 referrer:MakeReferrer("http://www.example.com/b")
1125 transition:ui::PAGE_TRANSITION_CLIENT_REDIRECT 1125 transition:ui::PAGE_TRANSITION_CLIENT_REDIRECT
1126 rendererInitiated:YES]; 1126 rendererInitiated:YES];
1127 [session_controller_ commitPendingEntry]; 1127 [session_controller_ commitPendingEntry];
1128 EXPECT_EQ(0U, [session_controller_ backwardEntries].count); 1128 EXPECT_EQ(0U, [session_controller_ backwardEntries].count);
1129 } 1129 }
1130 1130
1131 } // anonymous namespace 1131 } // anonymous namespace
OLDNEW
« no previous file with comments | « ios/web/browser_state_unittest.cc ('k') | ios/web/navigation/navigation_manager_impl_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698