Skip to content

Commit c421c88

Browse files
Kurt HorimotoCommit Bot
authored andcommitted
[iOS] Implement TestFullscreenController::[Set/Get]WebStateList().
Bug: 932148 Change-Id: I24e6b181842913d8da3d02c10e1816636a01454d Reviewed-on: https://chromium-review.googlesource.com/c/1490194 Auto-Submit: Kurt Horimoto <[email protected]> Reviewed-by: Eugene But <[email protected]> Commit-Queue: Kurt Horimoto <[email protected]> Cr-Commit-Position: refs/heads/master@{#635749}
1 parent 882ff8d commit c421c88

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

ios/chrome/browser/ui/fullscreen/test/test_fullscreen_controller.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ class TestFullscreenController : public FullscreenController {
4545
private:
4646
// The model.
4747
FullscreenModel* model_ = nullptr;
48+
// The WebStateList.
49+
WebStateList* web_state_list_ = nullptr;
4850
// The broadcaster.
4951
ChromeBroadcaster* broadcaster_ = nil;
5052
// The observers.

ios/chrome/browser/ui/fullscreen/test/test_fullscreen_controller.mm

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,16 @@
2323
return broadcaster_;
2424
}
2525

26-
void TestFullscreenController::SetWebStateList(WebStateList* web_state_list) {}
26+
void TestFullscreenController::SetWebStateList(WebStateList* web_state_list) {
27+
web_state_list_ = web_state_list;
28+
}
2729

2830
const WebStateList* TestFullscreenController::GetWebStateList() const {
29-
return nullptr;
31+
return web_state_list_;
3032
}
3133

3234
WebStateList* TestFullscreenController::GetWebStateList() {
33-
return nullptr;
35+
return web_state_list_;
3436
}
3537

3638
void TestFullscreenController::AddObserver(

0 commit comments

Comments
 (0)