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

Unified Diff: ios/clean/chrome/browser/ui/tab_collection/tab_collection_mediator_unittest.mm

Issue 2904053002: [ios] Active web state observer in tab collection. (Closed)
Patch Set: Update unittest 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 side-by-side diff with in-line comments
Download patch
Index: ios/clean/chrome/browser/ui/tab_collection/tab_collection_mediator_unittest.mm
diff --git a/ios/clean/chrome/browser/ui/tab_collection/tab_collection_mediator_unittest.mm b/ios/clean/chrome/browser/ui/tab_collection/tab_collection_mediator_unittest.mm
index 7b2663617f13118a2ff05323768e2ae96094f150..827a3150c7ba7d26a1097662a63171af888bce86 100644
--- a/ios/clean/chrome/browser/ui/tab_collection/tab_collection_mediator_unittest.mm
+++ b/ios/clean/chrome/browser/ui/tab_collection/tab_collection_mediator_unittest.mm
@@ -63,14 +63,14 @@ class TabCollectionMediatorTest : public PlatformTest {
// Tests that the consumer is notified of an insert into webStateList.
TEST_F(TabCollectionMediatorTest, TestInsertWebState) {
InsertWebState(2);
- [[consumer_ verify] insertItem:[OCMArg any] atIndex:2];
+ [[consumer_ verify] insertItem:[OCMArg any] atIndex:2 selectedIndex:0];
}
// Tests that the consumer is notified that a web state has been moved in
// webStateList.
TEST_F(TabCollectionMediatorTest, TestMoveWebState) {
web_state_list_->MoveWebStateAt(0, 2);
- [[consumer_ verify] moveItemFromIndex:0 toIndex:2];
+ [[consumer_ verify] moveItemFromIndex:0 toIndex:2 selectedIndex:2];
}
// Tests that the consumer is notified that a web state has been replaced in
@@ -85,12 +85,12 @@ TEST_F(TabCollectionMediatorTest, TestReplaceWebState) {
// webStateList.
TEST_F(TabCollectionMediatorTest, TestDetachWebState) {
web_state_list_->CloseWebStateAt(1);
- [[consumer_ verify] deleteItemAtIndex:1];
+ [[consumer_ verify] deleteItemAtIndex:1 selectedIndex:0];
}
// Tests that the consumer is notified that the active web state has changed in
// webStateList.
TEST_F(TabCollectionMediatorTest, TestChangeActiveWebState) {
web_state_list_->ActivateWebStateAt(2);
- [[consumer_ verify] selectItemAtIndex:2];
+ [[consumer_ verify] setSelectedIndex:2];
}

Powered by Google App Engine
This is Rietveld 408576698