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

Side by Side Diff: chrome/browser/bitmap_fetcher/bitmap_fetcher_browsertest.cc

Issue 684613002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/bitmap_fetcher/bitmap_fetcher.h" 5 #include "chrome/browser/bitmap_fetcher/bitmap_fetcher.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/ui/browser.h" 9 #include "chrome/browser/ui/browser.h"
10 #include "chrome/test/base/in_process_browser_test.h" 10 #include "chrome/test/base/in_process_browser_test.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 GURL url_; 64 GURL url_;
65 bool success_; 65 bool success_;
66 bool async_; 66 bool async_;
67 SkBitmap bitmap_; 67 SkBitmap bitmap_;
68 68
69 DISALLOW_COPY_AND_ASSIGN(BitmapFetcherTestDelegate); 69 DISALLOW_COPY_AND_ASSIGN(BitmapFetcherTestDelegate);
70 }; 70 };
71 71
72 class BitmapFetcherBrowserTest : public InProcessBrowserTest { 72 class BitmapFetcherBrowserTest : public InProcessBrowserTest {
73 public: 73 public:
74 virtual void SetUp() override { 74 void SetUp() override {
75 url_fetcher_factory_.reset( 75 url_fetcher_factory_.reset(
76 new net::FakeURLFetcherFactory(&url_fetcher_impl_factory_)); 76 new net::FakeURLFetcherFactory(&url_fetcher_impl_factory_));
77 InProcessBrowserTest::SetUp(); 77 InProcessBrowserTest::SetUp();
78 } 78 }
79 79
80 protected: 80 protected:
81 net::URLFetcherImplFactory url_fetcher_impl_factory_; 81 net::URLFetcherImplFactory url_fetcher_impl_factory_;
82 scoped_ptr<net::FakeURLFetcherFactory> url_fetcher_factory_; 82 scoped_ptr<net::FakeURLFetcherFactory> url_fetcher_factory_;
83 }; 83 };
84 84
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 net::URLRequest::CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE, 192 net::URLRequest::CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE,
193 net::LOAD_NORMAL); 193 net::LOAD_NORMAL);
194 194
195 // Blocks until test delegate is notified via a callback. 195 // Blocks until test delegate is notified via a callback.
196 delegate.Wait(); 196 delegate.Wait();
197 197
198 EXPECT_FALSE(delegate.success()); 198 EXPECT_FALSE(delegate.success());
199 } 199 }
200 200
201 } // namespace chrome 201 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698