chromium/components/performance_manager/v8_memory/v8_context_tracker_browsertest.cc

// Copyright 2020 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/performance_manager/v8_memory/v8_context_tracker.h"

#include <memory>

#include "base/location.h"
#include "base/strings/stringprintf.h"
#include "base/command_line.h"
#include "components/performance_manager/execution_context/execution_context_registry_impl.h"
#include "components/performance_manager/public/graph/graph.h"
#include "components/performance_manager/public/performance_manager.h"
#include "components/performance_manager/test_support/performance_manager_browsertest_harness.h"
#include "components/performance_manager/test_support/run_in_graph.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/content_browser_test_utils.h"
#include "content/shell/browser/shell.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
#include "content/public/test/test_utils.h"

namespace performance_manager {
namespace v8_memory {

struct ContextCounts {};

class V8ContextTrackerTest : public PerformanceManagerBrowserTestHarness {};

// TODO(crbug.com/40931300): Re-enable on Mac.
#if BUILDFLAG(IS_MAC)
#define MAYBE_AboutBlank
#else
#define MAYBE_AboutBlank
#endif
IN_PROC_BROWSER_TEST_F(V8ContextTrackerTest, MAYBE_AboutBlank) {}

IN_PROC_BROWSER_TEST_F(V8ContextTrackerTest, SameOriginIframeAttributionData) {}

// TODO(crbug.com/40931300): Re-enable on Mac.
#if BUILDFLAG(IS_MAC)
#define MAYBE_CrossOriginIframeAttributionData
#else
#define MAYBE_CrossOriginIframeAttributionData
#endif  // BUILDFLAG(IS_MAC)
IN_PROC_BROWSER_TEST_F(V8ContextTrackerTest,
                       MAYBE_CrossOriginIframeAttributionData) {}

// TODO(crbug.com/40931300): Re-enable on Mac.
#if BUILDFLAG(IS_MAC)
#define MAYBE_SameSiteNavigation
#else
#define MAYBE_SameSiteNavigation
#endif  // BUILDFLAG(IS_MAC)
IN_PROC_BROWSER_TEST_F(V8ContextTrackerTest, MAYBE_SameSiteNavigation) {}

IN_PROC_BROWSER_TEST_F(V8ContextTrackerTest, DetachedContext) {}

}  // namespace v8_memory
}  // namespace performance_manager