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

Side by Side Diff: chrome/browser/download/save_page_browsertest.cc

Issue 1378123003: Adding SSL ETS Tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ets
Patch Set: Rebase. Created 5 years, 1 month 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/bind_helpers.h" 6 #include "base/bind_helpers.h"
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/files/scoped_temp_dir.h" 10 #include "base/files/scoped_temp_dir.h"
(...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 SavePageBrowserTest::SetUpCommandLine(command_line); 812 SavePageBrowserTest::SetUpCommandLine(command_line);
813 813
814 // Append --site-per-process flag. 814 // Append --site-per-process flag.
815 content::IsolateAllSitesForTesting(command_line); 815 content::IsolateAllSitesForTesting(command_line);
816 } 816 }
817 817
818 void SetUpOnMainThread() override { 818 void SetUpOnMainThread() override {
819 SavePageBrowserTest::SetUpOnMainThread(); 819 SavePageBrowserTest::SetUpOnMainThread();
820 820
821 host_resolver()->AddRule("*", "127.0.0.1"); 821 host_resolver()->AddRule("*", "127.0.0.1");
822 ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady()); 822 ASSERT_TRUE(embedded_test_server()->Start());
823 content::SetupCrossSiteRedirector(embedded_test_server()); 823 content::SetupCrossSiteRedirector(embedded_test_server());
824 } 824 }
825 825
826 private: 826 private:
827 DISALLOW_COPY_AND_ASSIGN(SavePageSitePerProcessBrowserTest); 827 DISALLOW_COPY_AND_ASSIGN(SavePageSitePerProcessBrowserTest);
828 }; 828 };
829 829
830 // Test for crbug.com/526786. 830 // Test for crbug.com/526786.
831 // 831 //
832 // Disabled because the test will crash until the bug is fixed (but note that 832 // Disabled because the test will crash until the bug is fixed (but note that
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
929 pos = mhtml.find("Content-Type: image/png", pos); 929 pos = mhtml.find("Content-Type: image/png", pos);
930 if (pos == std::string::npos) 930 if (pos == std::string::npos)
931 break; 931 break;
932 count++; 932 count++;
933 pos++; 933 pos++;
934 } 934 }
935 EXPECT_EQ(1, count) << "Verify number of image/png parts in the mhtml output"; 935 EXPECT_EQ(1, count) << "Verify number of image/png parts in the mhtml output";
936 } 936 }
937 937
938 } // namespace 938 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/download/notification/download_notification_browsertest.cc ('k') | chrome/browser/errorpage_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698