#include "chrome/browser/chooser_controller/title_util.h"
#include "base/files/file_path.h"
#include "base/strings/strcat.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/test/popup_test_base.h"
#include "components/strings/grit/components_strings.h"
#include "components/url_formatter/elide_url.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 "net/test/embedded_test_server/embedded_test_server.h"
#include "url/origin.h"
constexpr int kTitleResourceId = …;
class CreateChooserTitlePopUpBrowserTest
: public PopupTestBase,
public ::testing::WithParamInterface<bool> { … };
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(…);
IN_PROC_BROWSER_TEST_F(CreateChooserTitlePopUpBrowserTest,
UseOriginNotUrl) { … }