| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #import "ios/web/test/web_test.h" | 5 #import "ios/web/test/web_test.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/base64.h" | 9 #include "base/base64.h" |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 } | 34 } |
| 35 @end | 35 @end |
| 36 | 36 |
| 37 namespace web { | 37 namespace web { |
| 38 | 38 |
| 39 #pragma mark - | 39 #pragma mark - |
| 40 | 40 |
| 41 WebTest::WebTest() : web_client_(base::WrapUnique(new TestWebClient)) { | 41 WebTest::WebTest() : web_client_(base::WrapUnique(new TestWebClient)) { |
| 42 static dispatch_once_t onceToken; | 42 static dispatch_once_t onceToken; |
| 43 dispatch_once(&onceToken, ^{ | 43 dispatch_once(&onceToken, ^{ |
| 44 RegisterWebSchemes(true); | 44 RegisterWebSchemes(false); |
| 45 }); | 45 }); |
| 46 } | 46 } |
| 47 | 47 |
| 48 WebTest::~WebTest() {} | 48 WebTest::~WebTest() {} |
| 49 | 49 |
| 50 void WebTest::SetUp() { | 50 void WebTest::SetUp() { |
| 51 PlatformTest::SetUp(); | 51 PlatformTest::SetUp(); |
| 52 BrowserState::GetActiveStateManager(&browser_state_)->SetActive(true); | 52 BrowserState::GetActiveStateManager(&browser_state_)->SetActive(true); |
| 53 } | 53 } |
| 54 | 54 |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 } | 218 } |
| 219 return false; | 219 return false; |
| 220 } | 220 } |
| 221 | 221 |
| 222 NSString* WebTestWithWebController::CreateLoadCheck() { | 222 NSString* WebTestWithWebController::CreateLoadCheck() { |
| 223 return [NSString stringWithFormat:@"<p style=\"display: none;\">%d</p>", | 223 return [NSString stringWithFormat:@"<p style=\"display: none;\">%d</p>", |
| 224 s_html_load_count++]; | 224 s_html_load_count++]; |
| 225 } | 225 } |
| 226 | 226 |
| 227 } // namespace web | 227 } // namespace web |
| OLD | NEW |