chromium/ios/chrome/browser/ui/tab_switcher/test/fake_tab_collection_consumer.h

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TEST_FAKE_TAB_COLLECTION_CONSUMER_H_
#define IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TEST_FAKE_TAB_COLLECTION_CONSUMER_H_

#import <vector>

#import "ios/chrome/browser/ui/tab_switcher/tab_collection_consumer.h"

namespace web {
class WebStateID;
}  // namespace web
class TabGroup;

// Test object that conforms to TabCollectionConsumer and exposes inner state
// for test verification.
@interface FakeTabCollectionConsumer : NSObject <TabCollectionConsumer>

// The fake consumer only keeps the identifiers of items for simplicity.
@property(nonatomic, readonly) const std::vector<web::WebStateID>& items;
@property(nonatomic, readonly) const std::vector<const TabGroup*>& groups;
@property(nonatomic, strong) GridItemIdentifier* selectedItem;
@property(nonatomic, assign) TabGridMode mode;

@end

#endif  // IOS_CHROME_BROWSER_UI_TAB_SWITCHER_TEST_FAKE_TAB_COLLECTION_CONSUMER_H_