#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include <stddef.h>
#include "base/files/file_util.h"
#include "base/memory/raw_ptr.h"
#include "base/path_service.h"
#include "base/run_loop.h"
#include "base/strings/utf_string_conversions.h"
#include "base/threading/thread_restrictions.h"
#include "chrome/browser/task_manager/mock_web_contents_task_manager.h"
#include "chrome/browser/task_manager/providers/web_contents/web_contents_tags_manager.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/tabs/tab_enums.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/grit/generated_resources.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/favicon/content/content_favicon_driver.h"
#include "components/favicon/core/favicon_driver.h"
#include "components/favicon/core/favicon_driver_observer.h"
#include "content/public/browser/back_forward_cache.h"
#include "content/public/browser/favicon_status.h"
#include "content/public/browser/navigation_entry.h"
#include "content/public/browser/site_instance.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/fenced_frame_test_util.h"
#include "content/public/test/test_utils.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/page_transition_types.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/codec/png_codec.h"
#include "ui/gfx/image/image.h"
#include "ui/gfx/image/image_unittest_util.h"
#include "ui/resources/grit/ui_resources.h"
namespace task_manager {
namespace {
struct TestPageData { … };
const TestPageData kTestPages[] = …;
const size_t kTestPagesLength = …;
class FaviconWaiter : public favicon::FaviconDriverObserver { … };
}
class TabContentsTagTest : public InProcessBrowserTest { … };
IN_PROC_BROWSER_TEST_F(TabContentsTagTest, BasicTagsTracking) { … }
IN_PROC_BROWSER_TEST_F(TabContentsTagTest, PreExistingTaskProviding) { … }
IN_PROC_BROWSER_TEST_F(TabContentsTagTest, PostExistingTaskProviding) { … }
IN_PROC_BROWSER_TEST_F(TabContentsTagTest, NavigateToPageNoFavicon) { … }
class TabContentsTagFencedFrameTest : public TabContentsTagTest { … };
IN_PROC_BROWSER_TEST_F(TabContentsTagFencedFrameTest,
FencedFrameDoesNotUpdateTitle) { … }
}