chromium/chrome/browser/extensions/api/tabs/window_open_interactive_apitest.cc

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

#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/extensions/extension_apitest.h"
#include "content/public/test/browser_test.h"
#include "extensions/test/result_catcher.h"

namespace extensions {

IN_PROC_BROWSER_TEST_F(ExtensionApiTest, WindowOpenFocus) {}

// The test uses the chrome.browserAction.openPopup API, which requires that the
// window can automatically be activated.
// Fails flakily on Linux and Lacros. https://crbug.com/477691.
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)
#define MAYBE_WindowOpen
#else
#define MAYBE_WindowOpen
#endif
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, MAYBE_WindowOpen) {}

}  // namespace extensions