summaryrefslogtreecommitdiffstats
path: root/ios/web/test
diff options
context:
space:
mode:
authorshreyasv <shreyasv@chromium.org>2015-07-27 17:48:24 -0700
committerCommit bot <commit-bot@chromium.org>2015-07-28 00:49:02 +0000
commitb07283fe544aafcb1d11feaaafeb2166bf15c87f (patch)
tree1c4a1db751c6ddcbd406b921733066b8371725e5 /ios/web/test
parent9294fcb8d0373f35f4f8475be724f87ca952256f (diff)
downloadchromium_src-b07283fe544aafcb1d11feaaafeb2166bf15c87f.zip
chromium_src-b07283fe544aafcb1d11feaaafeb2166bf15c87f.tar.gz
chromium_src-b07283fe544aafcb1d11feaaafeb2166bf15c87f.tar.bz2
Moving a few web unittests to use WebTest test fixture
A lot of the boilerplate in these unittests is already present in this test fixture. Also added a method to return the current test WebClient BUG=480507 Review URL: https://codereview.chromium.org/1252923006 Cr-Commit-Position: refs/heads/master@{#340618}
Diffstat (limited to 'ios/web/test')
-rw-r--r--ios/web/test/web_test.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ios/web/test/web_test.h b/ios/web/test/web_test.h
index 2d10828..13ae8ef 100644
--- a/ios/web/test/web_test.h
+++ b/ios/web/test/web_test.h
@@ -42,6 +42,9 @@ class WebTest : public PlatformTest {
void SetUp() override;
void TearDown() override;
+ // Returns the WebClient that is used for testing.
+ TestWebClient* GetWebClient() { return &client_; }
+
// Returns the BrowserState that is used for testing.
BrowserState* GetBrowserState() { return &browser_state_; }