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

Side by Side Diff: ios/chrome/browser/ui/ntp/google_landing_controller_unittest.mm

Issue 2833513002: Replace TabModel with WebStateList in GoogleLandingController. (Closed)
Patch Set: Created 3 years, 8 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 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 #include <memory> 5 #include <memory>
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "components/search_engines/template_url_service.h" 9 #include "components/search_engines/template_url_service.h"
10 #include "ios/chrome/browser/browser_state/test_chrome_browser_state.h" 10 #include "ios/chrome/browser/browser_state/test_chrome_browser_state.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 // Set up stub UrlLoader. 55 // Set up stub UrlLoader.
56 mockUrlLoader_ = [OCMockObject mockForProtocol:@protocol(UrlLoader)]; 56 mockUrlLoader_ = [OCMockObject mockForProtocol:@protocol(UrlLoader)];
57 controller_ = [[GoogleLandingController alloc] init]; 57 controller_ = [[GoogleLandingController alloc] init];
58 mediator_ = [[GoogleLandingMediator alloc] 58 mediator_ = [[GoogleLandingMediator alloc]
59 initWithConsumer:controller_ 59 initWithConsumer:controller_
60 browserState:chrome_browser_state_.get() 60 browserState:chrome_browser_state_.get()
61 loader:(id<UrlLoader>)mockUrlLoader_ 61 loader:(id<UrlLoader>)mockUrlLoader_
62 focuser:nil 62 focuser:nil
63 webToolbarDelegate:nil 63 webToolbarDelegate:nil
64 tabModel:nil]; 64 webStateList:nil];
65 }; 65 };
66 66
67 base::MessageLoopForUI message_loop_; 67 base::MessageLoopForUI message_loop_;
68 web::TestWebThread ui_thread_; 68 web::TestWebThread ui_thread_;
69 web::TestWebThread io_thread_; 69 web::TestWebThread io_thread_;
70 IOSChromeScopedTestingLocalState local_state_; 70 IOSChromeScopedTestingLocalState local_state_;
71 std::unique_ptr<TestChromeBrowserState> chrome_browser_state_; 71 std::unique_ptr<TestChromeBrowserState> chrome_browser_state_;
72 OCMockObject* mockUrlLoader_; 72 OCMockObject* mockUrlLoader_;
73 GoogleLandingMediator* mediator_; 73 GoogleLandingMediator* mediator_;
74 GoogleLandingController* controller_; 74 GoogleLandingController* controller_;
75 }; 75 };
76 76
77 TEST_F(GoogleLandingControllerTest, TestConstructorDestructor) { 77 TEST_F(GoogleLandingControllerTest, TestConstructorDestructor) {
78 EXPECT_TRUE(controller_); 78 EXPECT_TRUE(controller_);
79 } 79 }
80 80
81 } // anonymous namespace 81 } // anonymous namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698