blob: e9597a61215162fec6f1997f31fec8716bd6404e [file] [log] [blame]
// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/tabs/public/tab_interface.h"
#include "build/build_config.h"
#include "chrome/test/base/chrome_test_utils.h"
#include "chrome/test/base/platform_browser_test.h"
#include "content/public/test/browser_test.h"
class TabInterfaceBrowserTest : public PlatformBrowserTest {
public:
tabs::TabInterface* GetActiveTabInterface() {
return chrome_test_utils::GetActiveTabInterface(this);
}
};
IN_PROC_BROWSER_TEST_F(TabInterfaceBrowserTest, ActiveTabIsActivated) {
auto* active_tab = GetActiveTabInterface();
ASSERT_TRUE(active_tab);
EXPECT_TRUE(active_tab->IsActivated());
}