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

Side by Side Diff: ios/web/public/test/fakes/test_web_client.mm

Issue 2614443004: [ios] Moved all web mocks to ios/web/public/test/fakes. (Closed)
Patch Set: Moved test_redirect_observer back Created 3 years, 11 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
« no previous file with comments | « ios/web/public/test/fakes/test_web_client.h ('k') | ios/web/public/test/fakes/test_web_state.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #import "ios/web/public/test/test_web_client.h" 5 #import "ios/web/public/test/fakes/test_web_client.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ios/web/test/test_url_constants.h" 8 #include "ios/web/test/test_url_constants.h"
9 #include "ui/base/resource/resource_bundle.h" 9 #include "ui/base/resource/resource_bundle.h"
10 #include "url/gurl.h" 10 #include "url/gurl.h"
11 11
12 namespace web { 12 namespace web {
13 13
14 TestWebClient::TestWebClient() 14 TestWebClient::TestWebClient()
15 : last_cert_error_code_(0), last_cert_error_overridable_(true) {} 15 : last_cert_error_code_(0), last_cert_error_overridable_(true) {}
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 const base::Callback<void(bool)>& callback) { 50 const base::Callback<void(bool)>& callback) {
51 last_cert_error_code_ = cert_error; 51 last_cert_error_code_ = cert_error;
52 last_cert_error_ssl_info_ = ssl_info; 52 last_cert_error_ssl_info_ = ssl_info;
53 last_cert_error_request_url_ = request_url; 53 last_cert_error_request_url_ = request_url;
54 last_cert_error_overridable_ = overridable; 54 last_cert_error_overridable_ = overridable;
55 55
56 callback.Run(false); 56 callback.Run(false);
57 } 57 }
58 58
59 } // namespace web 59 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/public/test/fakes/test_web_client.h ('k') | ios/web/public/test/fakes/test_web_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698