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

Side by Side Diff: ios/web/public/test/web_test.mm

Issue 2060483003: [ios] Extracted web_test.h classes into separate files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed typo Created 4 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
« no previous file with comments | « ios/web/public/test/web_test.h ('k') | ios/web/public/test/web_test_with_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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ios/web/public/test/web_test.h"
6
7 #include "base/memory/ptr_util.h"
8 #import "ios/web/public/active_state_manager.h"
9 #import "ios/web/public/test/test_web_client.h"
10
11 namespace web {
12
13 WebTest::WebTest() : web_client_(base::WrapUnique(new TestWebClient)) {}
14
15 WebTest::~WebTest() {}
16
17 void WebTest::SetUp() {
18 PlatformTest::SetUp();
19 BrowserState::GetActiveStateManager(&browser_state_)->SetActive(true);
20 }
21
22 void WebTest::TearDown() {
23 BrowserState::GetActiveStateManager(&browser_state_)->SetActive(false);
24 PlatformTest::TearDown();
25 }
26
27 TestWebClient* WebTest::GetWebClient() {
28 return static_cast<TestWebClient*>(web_client_.Get());
29 }
30
31 BrowserState* WebTest::GetBrowserState() {
32 return &browser_state_;
33 }
34
35 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/public/test/web_test.h ('k') | ios/web/public/test/web_test_with_web_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698