Apply clang-format to all C, C++ and ObjC files (issue #2171)

This commit is contained in:
Marshall Greenblatt
2017-05-17 11:29:28 +02:00
parent a566549e04
commit 31d9407ee2
1331 changed files with 33014 additions and 32258 deletions

View File

@@ -28,21 +28,20 @@ const char kTitleStr3[] = "Title 3";
class TitleTestHandler : public TestHandler {
public:
TitleTestHandler()
: step_(0),
got_title_change_(false),
got_loading_state_change_(false) {}
: step_(0), got_title_change_(false), got_loading_state_change_(false) {}
void RunTest() override {
// Add the resources that we will navigate to/from.
AddResource(kTitleUrl1,
"<html><head><title>" + std::string(kTitleStr1) +
"</title></head>Nav1</html>", "text/html");
"<html><head><title>" + std::string(kTitleStr1) +
"</title></head>Nav1</html>",
"text/html");
AddResource(kTitleUrl2,
"<html><head><title>" + std::string(kTitleStr2) +
"</title></head>Nav2" +
"<script>function setTitle() { window.document.title = '" +
std::string(kTitleStr3) + "'; }</script>" +
"</html>", "text/html");
"<html><head><title>" + std::string(kTitleStr2) +
"</title></head>Nav2" +
"<script>function setTitle() { window.document.title = '" +
std::string(kTitleStr3) + "'; }</script>" + "</html>",
"text/html");
// Create the browser.
CreateBrowser(kTitleUrl1);
@@ -115,7 +114,7 @@ class TitleTestHandler : public TestHandler {
browser->GetMainFrame()->ExecuteJavaScript("setTitle()", kTitleUrl2, 0);
break;
default:
EXPECT_TRUE(false); // Not reached.
EXPECT_TRUE(false); // Not reached.
}
}