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

Side by Side Diff: chrome/browser/ssl/security_state_tab_helper_browser_tests.cc

Issue 2926553004: Remove trailing semicolon at the end of a method definition (Closed)
Patch Set: rebase Created 3 years, 6 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "chrome/browser/ssl/security_state_tab_helper.h" 5 #include "chrome/browser/ssl/security_state_tab_helper.h"
6 6
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/macros.h" 9 #include "base/macros.h"
10 #include "base/strings/string_split.h" 10 #include "base/strings/string_split.h"
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after
914 void InstallLoadingInterceptor(const std::string& host) { 914 void InstallLoadingInterceptor(const std::string& host) {
915 net::URLRequestFilter* filter = net::URLRequestFilter::GetInstance(); 915 net::URLRequestFilter* filter = net::URLRequestFilter::GetInstance();
916 filter->AddHostnameInterceptor( 916 filter->AddHostnameInterceptor(
917 "http", host, 917 "http", host,
918 std::unique_ptr<net::URLRequestInterceptor>(new PendingJobInterceptor())); 918 std::unique_ptr<net::URLRequestInterceptor>(new PendingJobInterceptor()));
919 } 919 }
920 920
921 class SecurityStateLoadingTest : public SecurityStateTabHelperTest { 921 class SecurityStateLoadingTest : public SecurityStateTabHelperTest {
922 public: 922 public:
923 SecurityStateLoadingTest() : SecurityStateTabHelperTest() {} 923 SecurityStateLoadingTest() : SecurityStateTabHelperTest() {}
924 ~SecurityStateLoadingTest() override{}; 924 ~SecurityStateLoadingTest() override {}
925 925
926 protected: 926 protected:
927 void SetUpOnMainThread() override { 927 void SetUpOnMainThread() override {
928 ASSERT_TRUE(embedded_test_server()->Start()); 928 ASSERT_TRUE(embedded_test_server()->Start());
929 929
930 content::BrowserThread::PostTask( 930 content::BrowserThread::PostTask(
931 content::BrowserThread::IO, FROM_HERE, 931 content::BrowserThread::IO, FROM_HERE,
932 base::Bind(&InstallLoadingInterceptor, 932 base::Bind(&InstallLoadingInterceptor,
933 embedded_test_server()->GetURL("/title1.html").host())); 933 embedded_test_server()->GetURL("/title1.html").host()));
934 } 934 }
(...skipping 922 matching lines...) Expand 10 before | Expand all | Expand 10 after
1857 base::string16 obsolete_description = l10n_util::GetStringFUTF16( 1857 base::string16 obsolete_description = l10n_util::GetStringFUTF16(
1858 IDS_OBSOLETE_SSL_DESCRIPTION, description_replacements, nullptr); 1858 IDS_OBSOLETE_SSL_DESCRIPTION, description_replacements, nullptr);
1859 1859
1860 EXPECT_EQ( 1860 EXPECT_EQ(
1861 obsolete_description, 1861 obsolete_description,
1862 base::ASCIIToUTF16( 1862 base::ASCIIToUTF16(
1863 observer.latest_explanations().info_explanations[0].description)); 1863 observer.latest_explanations().info_explanations[0].description));
1864 } 1864 }
1865 1865
1866 } // namespace 1866 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698