blob: fb5d1b4f21a6f42e4c4c60e6348cc20ab91b298d [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 "chrome/browser/ui/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, ActiveTabIsInForeground) {
auto* active_tab = GetActiveTabInterface();
ASSERT_TRUE(active_tab);
EXPECT_TRUE(active_tab->IsInForeground());
}