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

Side by Side Diff: chrome/browser/profile_resetter/profile_resetter_unittest.cc

Issue 648653003: Standardize usage of virtual/override/final in chrome/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/profile_resetter/profile_resetter.h" 5 #include "chrome/browser/profile_resetter/profile_resetter.h"
6 6
7 #include "base/json/json_string_value_serializer.h" 7 #include "base/json/json_string_value_serializer.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "base/test/scoped_path_override.h" 10 #include "base/test/scoped_path_override.h"
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 return content::WebContents::Create( 175 return content::WebContents::Create(
176 content::WebContents::CreateParams(profile())); 176 content::WebContents::CreateParams(profile()));
177 } 177 }
178 178
179 179
180 // ConfigParserTest ----------------------------------------------------------- 180 // ConfigParserTest -----------------------------------------------------------
181 181
182 // URLFetcher delegate that simply records the upload data. 182 // URLFetcher delegate that simply records the upload data.
183 struct URLFetcherRequestListener : net::URLFetcherDelegate { 183 struct URLFetcherRequestListener : net::URLFetcherDelegate {
184 URLFetcherRequestListener(); 184 URLFetcherRequestListener();
185 virtual ~URLFetcherRequestListener(); 185 ~URLFetcherRequestListener() override;
186 186
187 virtual void OnURLFetchComplete(const net::URLFetcher* source) override; 187 void OnURLFetchComplete(const net::URLFetcher* source) override;
188 188
189 std::string upload_data; 189 std::string upload_data;
190 net::URLFetcherDelegate* real_delegate; 190 net::URLFetcherDelegate* real_delegate;
191 }; 191 };
192 192
193 URLFetcherRequestListener::URLFetcherRequestListener() 193 URLFetcherRequestListener::URLFetcherRequestListener()
194 : real_delegate(NULL) { 194 : real_delegate(NULL) {
195 } 195 }
196 196
197 URLFetcherRequestListener::~URLFetcherRequestListener() { 197 URLFetcherRequestListener::~URLFetcherRequestListener() {
(...skipping 898 matching lines...) Expand 10 before | Expand all | Expand 10 after
1096 new ResettableSettingsSnapshot(profile())); 1096 new ResettableSettingsSnapshot(profile()));
1097 deleted_snapshot->RequestShortcuts(base::Bind(&FeedbackCapture::Fail, 1097 deleted_snapshot->RequestShortcuts(base::Bind(&FeedbackCapture::Fail,
1098 base::Unretained(&capture))); 1098 base::Unretained(&capture)));
1099 deleted_snapshot.reset(); 1099 deleted_snapshot.reset();
1100 // Running remaining tasks shouldn't trigger the callback to be called as 1100 // Running remaining tasks shouldn't trigger the callback to be called as
1101 // |deleted_snapshot| was deleted before it could run. 1101 // |deleted_snapshot| was deleted before it could run.
1102 base::MessageLoop::current()->RunUntilIdle(); 1102 base::MessageLoop::current()->RunUntilIdle();
1103 } 1103 }
1104 1104
1105 } // namespace 1105 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698