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

Side by Side Diff: webkit/tools/test_shell/node_leak_test.cc

Issue 200054: Hook up WebFrameClient, replacing many WebViewDelegate methods.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « webkit/tools/test_shell/media_leak_test.cc ('k') | webkit/tools/test_shell/plugin_tests.cc » ('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 (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/file_path.h" 6 #include "base/file_path.h"
7 #include "base/path_service.h" 7 #include "base/path_service.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "net/http/http_cache.h" 9 #include "net/http/http_cache.h"
10 #include "net/url_request/url_request_context.h" 10 #include "net/url_request/url_request_context.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 TestShellTest::SetUp(); 58 TestShellTest::SetUp();
59 } 59 }
60 60
61 virtual void TearDown() { 61 virtual void TearDown() {
62 TestShellTest::TearDown(); 62 TestShellTest::TearDown();
63 63
64 SimpleResourceLoaderBridge::Shutdown(); 64 SimpleResourceLoaderBridge::Shutdown();
65 } 65 }
66 66
67 void NavigateToURL(const std::wstring& test_url) { 67 void NavigateToURL(const std::wstring& test_url) {
68 test_shell_->LoadURL(test_url.c_str()); 68 test_shell_->LoadURL(GURL(WideToUTF8(test_url)));
69 test_shell_->WaitTestFinished(); 69 test_shell_->WaitTestFinished();
70 70
71 // Depends on TestShellTests::TearDown to load blank page and 71 // Depends on TestShellTests::TearDown to load blank page and
72 // the TestShell destructor to call garbage collection. 72 // the TestShell destructor to call garbage collection.
73 } 73 }
74 }; 74 };
75 75
76 TEST_F(NodeLeakTest, TestURL) { 76 TEST_F(NodeLeakTest, TestURL) {
77 const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess(); 77 const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess();
78 if (parsed_command_line.HasSwitch(kTestUrlSwitch)) { 78 if (parsed_command_line.HasSwitch(kTestUrlSwitch)) {
79 NavigateToURL(parsed_command_line.GetSwitchValue(kTestUrlSwitch).c_str()); 79 NavigateToURL(parsed_command_line.GetSwitchValue(kTestUrlSwitch).c_str());
80 } 80 }
81 } 81 }
82 82
83 } // namespace 83 } // namespace
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/media_leak_test.cc ('k') | webkit/tools/test_shell/plugin_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698