Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Side by Side Diff: headless/lib/headless_browser_browsertest.cc

Issue 2666503002: Make headless_shell target compile for Windows (Closed)
Patch Set: Fix initlogging placing, always enable logging in Windows Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <memory> 5 #include <memory>
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 // changes. 567 // changes.
568 std::unique_ptr<network::SetCookieParams> set_cookie_params = 568 std::unique_ptr<network::SetCookieParams> set_cookie_params =
569 network::SetCookieParams::Builder() 569 network::SetCookieParams::Builder()
570 .SetUrl("https://other.com") 570 .SetUrl("https://other.com")
571 .SetName("shape") 571 .SetName("shape")
572 .SetValue("trapezoid") 572 .SetValue("trapezoid")
573 .SetDomain("other.com") 573 .SetDomain("other.com")
574 .SetPath("") 574 .SetPath("")
575 .SetSecure(true) 575 .SetSecure(true)
576 .SetHttpOnly(true) 576 .SetHttpOnly(true)
577 .SetSameSite(network::CookieSameSite::STRICT) 577 .SetSameSite(network::CookieSameSite::EXACT)
578 .SetExpirationDate(0) 578 .SetExpirationDate(0)
579 .Build(); 579 .Build();
580 CookieSetter cookie_setter(this, web_contents, 580 CookieSetter cookie_setter(this, web_contents,
581 std::move(set_cookie_params)); 581 std::move(set_cookie_params));
582 RunAsynchronousTest(); 582 RunAsynchronousTest();
583 std::unique_ptr<network::SetCookieResult> result = 583 std::unique_ptr<network::SetCookieResult> result =
584 cookie_setter.TakeResult(); 584 cookie_setter.TakeResult();
585 EXPECT_TRUE(result->GetSuccess()); 585 EXPECT_TRUE(result->GetSuccess());
586 } 586 }
587 587
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 // Make sure the launcher was invoked when starting the renderer. 636 // Make sure the launcher was invoked when starting the renderer.
637 std::string stamp; 637 std::string stamp;
638 EXPECT_TRUE(base::ReadFileToString(launcher_stamp, &stamp)); 638 EXPECT_TRUE(base::ReadFileToString(launcher_stamp, &stamp));
639 EXPECT_GE(stamp.find("--type=renderer"), 0u); 639 EXPECT_GE(stamp.find("--type=renderer"), 0u);
640 640
641 base::DeleteFile(launcher_script, false); 641 base::DeleteFile(launcher_script, false);
642 base::DeleteFile(launcher_stamp, false); 642 base::DeleteFile(launcher_stamp, false);
643 } 643 }
644 644
645 } // namespace headless 645 } // namespace headless
OLDNEW
« no previous file with comments | « headless/lib/browser/headless_browser_impl.cc ('k') | headless/lib/headless_content_main_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698