#include <memory>
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/ui/browser_dialogs.h"
#include "chrome/test/base/browser_with_test_window_test.h"
#include "ui/base/models/dialog_model_field.h"
#include "ui/base/test/test_dialog_model_host.h"
WindowNamePromptTest;
namespace {
void SetTextfieldContents(ui::TestDialogModelHost* host,
const std::string& text) { … }
std::string GetTextfieldContents(ui::TestDialogModelHost* host) { … }
TEST_F(WindowNamePromptTest, OpensWithInitialName) { … }
TEST_F(WindowNamePromptTest, AcceptNonemptySetsName) { … }
TEST_F(WindowNamePromptTest, AcceptEmptyClearsName) { … }
TEST_F(WindowNamePromptTest, CancelDoesntTouchName) { … }
}