#include "base/command_line.h"
#include "base/memory/raw_ptr.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/task_manager/mock_web_contents_task_manager.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/tabs/tab_strip_model.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 "content/public/browser/back_forward_cache.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/render_widget_host.h"
#include "content/public/browser/render_widget_host_view.h"
#include "content/public/common/content_features.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/test_utils.h"
#include "net/dns/mock_host_resolver.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "ui/base/l10n/l10n_util.h"
namespace task_manager {
namespace {
const char kCrossSitePageUrl[] = …;
const char kSimplePageUrl[] = …;
std::u16string GetExpectedSubframeTitlePrefix() { … }
std::u16string PrefixExpectedBFCacheTitle(const std::string& title,
bool is_subframe) { … }
std::u16string PrefixExpectedTabTitle(const std::string& title) { … }
}
class SubframeTaskBrowserTest : public InProcessBrowserTest { … };
IN_PROC_BROWSER_TEST_F(SubframeTaskBrowserTest, TaskManagerShowsSubframeTasks) { … }
class HungWebContentsTaskManager : public MockWebContentsTaskManager { … };
IN_PROC_BROWSER_TEST_F(SubframeTaskBrowserTest, TaskManagerHungSubframe) { … }
}