chromium/chrome/browser/new_tab_page/new_tab_page_interactive_uitest.cc

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

#include <algorithm>
#include <iterator>
#include <map>
#include <optional>
#include <set>
#include <string_view>
#include <utility>

#include "base/containers/span.h"
#include "base/functional/callback.h"
#include "base/json/json_reader.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/scoped_refptr.h"
#include "base/run_loop.h"
#include "base/test/scoped_feature_list.h"
#include "base/values.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/ui/browser_navigator.h"
#include "chrome/browser/ui/browser_navigator_params.h"
#include "chrome/browser/ui/location_bar/location_bar.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/location_bar/location_bar_view.h"
#include "chrome/common/webui_url_constants.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "components/network_session_configurator/common/network_switches.h"
#include "components/search/ntp_features.h"
#include "content/public/browser/devtools_agent_host_client.h"
#include "content/public/common/content_switches.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "url/gurl.h"

#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || \
    (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS))
#include "base/command_line.h"
#include "ui/views/test/view_skia_gold_pixel_diff.h"
#endif

namespace {
template <typename Value>
bool ContainsAll(const std::set<Value>& first, const std::set<Value>& second) {}
}  // namespace

class NewTabPageTest : public InProcessBrowserTest,
                       public content::DevToolsAgentHostClient {};

// TODO(crbug.com/40197892): NewTabPageTest.LandingPagePixelTest is flaky on
// ubsan.
// TODO(crbug.com/40874245): NewTabPageTest.LandingPagePixelTest is failing on
// Win11 Tests x64.
// TODO(crbug.com/40893756): It's also found flaky on Linux Tests, Linux Tests
// (Wayland), linux-lacros-tester-rel, Mac12 Tests.
IN_PROC_BROWSER_TEST_F(NewTabPageTest, DISABLED_LandingPagePixelTest) {}