summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authoravi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-10 21:21:51 +0000
committeravi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-10 21:21:51 +0000
commitf7013b72494bdc0ab64abe9584decbbb55e9fe1a (patch)
tree0cd9d205a3de0659f7d562ad220a362cf9fc5651 /webkit
parent6838de52128ad10319f26e98e979a866e10d0dd8 (diff)
downloadchromium_src-f7013b72494bdc0ab64abe9584decbbb55e9fe1a.zip
chromium_src-f7013b72494bdc0ab64abe9584decbbb55e9fe1a.tar.gz
chromium_src-f7013b72494bdc0ab64abe9584decbbb55e9fe1a.tar.bz2
Bring test shell test into the mac project
Review URL: http://codereview.chromium.org/1705 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2017 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/tools/test_shell/mac/TestShell.xcodeproj/project.pbxproj10
-rw-r--r--webkit/tools/test_shell/test_shell_test.cc5
2 files changed, 10 insertions, 5 deletions
diff --git a/webkit/tools/test_shell/mac/TestShell.xcodeproj/project.pbxproj b/webkit/tools/test_shell/mac/TestShell.xcodeproj/project.pbxproj
index d477094..55c5c21 100644
--- a/webkit/tools/test_shell/mac/TestShell.xcodeproj/project.pbxproj
+++ b/webkit/tools/test_shell/mac/TestShell.xcodeproj/project.pbxproj
@@ -50,7 +50,7 @@
E45629180E26B4FE005E4685 /* navigation_controller_base.cc in Sources */ = {isa = PBXBuildFile; fileRef = AB351E5B0DC7B3A5002F427A /* navigation_controller_base.cc */; };
E45629190E26B4FE005E4685 /* test_navigation_controller.cc in Sources */ = {isa = PBXBuildFile; fileRef = AB351E2E0DC7B290002F427A /* test_navigation_controller.cc */; };
E456291A0E26B4FE005E4685 /* test_shell_mac.mm in Sources */ = {isa = PBXBuildFile; fileRef = ABA9CAE90DBC521D00CB1EFB /* test_shell_mac.mm */; };
- E456291B0E26B4FE005E4685 /* test_shell_test.mm in Sources */ = {isa = PBXBuildFile; fileRef = AB8A78560DC553C7005C27B8 /* test_shell_test.mm */; };
+ E456291B0E26B4FE005E4685 /* test_shell_test.cc in Sources */ = {isa = PBXBuildFile; fileRef = AB8A78560DC553C7005C27B8 /* test_shell_test.cc */; };
E456291C0E26B4FE005E4685 /* test_webview_delegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = AB8A78580DC553D7005C27B8 /* test_webview_delegate.mm */; };
E456291D0E26B4FE005E4685 /* text_input_controller.cc in Sources */ = {isa = PBXBuildFile; fileRef = AB8A785B0DC553E4005C27B8 /* text_input_controller.cc */; };
E456291E0E26B4FE005E4685 /* test_shell_webview.mm in Sources */ = {isa = PBXBuildFile; fileRef = ABA65EFE0DD50BFF003A4FC8 /* test_shell_webview.mm */; };
@@ -350,7 +350,7 @@
AB8A78510DC553A8005C27B8 /* event_sending_controller.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = event_sending_controller.h; sourceTree = "<group>"; };
AB8A78520DC553A8005C27B8 /* event_sending_controller.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = event_sending_controller.cc; sourceTree = "<group>"; };
AB8A78540DC553BC005C27B8 /* node_leak_test.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = node_leak_test.cc; sourceTree = "<group>"; };
- AB8A78560DC553C7005C27B8 /* test_shell_test.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = test_shell_test.mm; sourceTree = "<group>"; };
+ AB8A78560DC553C7005C27B8 /* test_shell_test.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = test_shell_test.cc; sourceTree = "<group>"; };
AB8A78580DC553D7005C27B8 /* test_webview_delegate.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = test_webview_delegate.mm; sourceTree = "<group>"; };
AB8A78590DC553D7005C27B8 /* test_webview_delegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = test_webview_delegate.h; sourceTree = "<group>"; };
AB8A785B0DC553E4005C27B8 /* text_input_controller.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = text_input_controller.cc; sourceTree = "<group>"; };
@@ -662,7 +662,7 @@
ABCF253C0DB8436B00099567 /* test_shell_switches.cc */,
ABCF253B0DB8436B00099567 /* test_shell_switches.h */,
AB8A786E0DC5544D005C27B8 /* test_shell_test.h */,
- AB8A78560DC553C7005C27B8 /* test_shell_test.mm */,
+ AB8A78560DC553C7005C27B8 /* test_shell_test.cc */,
AB8A78590DC553D7005C27B8 /* test_webview_delegate.h */,
AB8A78580DC553D7005C27B8 /* test_webview_delegate.mm */,
AB8A785B0DC553E4005C27B8 /* text_input_controller.cc */,
@@ -1049,7 +1049,7 @@
E456291A0E26B4FE005E4685 /* test_shell_mac.mm in Sources */,
E450637E0E4100740025A81A /* test_shell_request_context.cc in Sources */,
E456290C0E26B4FE005E4685 /* test_shell_switches.cc in Sources */,
- E456291B0E26B4FE005E4685 /* test_shell_test.mm in Sources */,
+ E456291B0E26B4FE005E4685 /* test_shell_test.cc in Sources */,
E456291E0E26B4FE005E4685 /* test_shell_webview.mm in Sources */,
E456291C0E26B4FE005E4685 /* test_webview_delegate.mm in Sources */,
E456291D0E26B4FE005E4685 /* text_input_controller.cc in Sources */,
@@ -1095,6 +1095,7 @@
../../../..,
../../../../skia/include,
../../../../skia/include/corecg,
+ ../../../../testing/gtest/include,
../../../../third_party/icu38/public/common,
../../../../third_party/icu38/public/i18n,
../../../pending,
@@ -1120,6 +1121,7 @@
../../../..,
../../../../skia/include,
../../../../skia/include/corecg,
+ ../../../../testing/gtest/include,
../../../../third_party/icu38/public/common,
../../../../third_party/icu38/public/i18n,
../../../pending,
diff --git a/webkit/tools/test_shell/test_shell_test.cc b/webkit/tools/test_shell/test_shell_test.cc
index e725c99..31aee4e 100644
--- a/webkit/tools/test_shell/test_shell_test.cc
+++ b/webkit/tools/test_shell/test_shell_test.cc
@@ -4,6 +4,7 @@
#include "webkit/tools/test_shell/test_shell_test.h"
+#include "base/basictypes.h"
#include "base/file_util.h"
#include "base/message_loop.h"
#include "base/path_service.h"
@@ -17,7 +18,9 @@ std::wstring TestShellTest::GetTestURL(std::wstring test_case_path,
void TestShellTest::SetUp() {
// Make a test shell for use by the test.
+#if defined(OS_WIN)
TestShell::RegisterWindowClass();
+#endif
CreateEmptyWindow();
test_shell_->Show(test_shell_->webView(), NEW_WINDOW);
@@ -31,7 +34,7 @@ void TestShellTest::SetUp() {
void TestShellTest::TearDown() {
// Loading a blank url clears the memory in the current page.
test_shell_->LoadURL(L"about:blank");
- DestroyWindow(test_shell_->mainWnd());
+ test_shell_->DestroyWindow(test_shell_->mainWnd());
LayoutTestController::ClearShell();
// Flush the MessageLoop of any residual tasks.