| OLD | NEW |
| 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| 11 #include "net/base/escape.h" | 11 #include "net/base/escape.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebData.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebData.h" |
| 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
| 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
| 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptSource.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptSource.h" |
| 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
| 18 #include "webkit/tools/test_shell/test_shell.h" | 18 #include "webkit/tools/test_shell/test_shell.h" |
| 19 #include "webkit/tools/test_shell/test_shell_test.h" | 19 #include "webkit/tools/test_shell/test_shell_test.h" |
| 20 | 20 |
| 21 using WebKit::WebFrame; | 21 using WebKit::WebFrame; |
| 22 using WebKit::WebScriptSource; | 22 using WebKit::WebScriptSource; |
| 23 using WebKit::WebString; | 23 using WebKit::WebString; |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 ASSERT_TRUE(IsWindowVisible(plugin_hwnd)); | 185 ASSERT_TRUE(IsWindowVisible(plugin_hwnd)); |
| 186 | 186 |
| 187 main_frame->executeScript(WebString::fromUTF8("showFrame(false)")); | 187 main_frame->executeScript(WebString::fromUTF8("showFrame(false)")); |
| 188 ASSERT_FALSE(IsWindowVisible(plugin_hwnd)); | 188 ASSERT_FALSE(IsWindowVisible(plugin_hwnd)); |
| 189 | 189 |
| 190 main_frame->executeScript(WebString::fromUTF8("showFrame(true)")); | 190 main_frame->executeScript(WebString::fromUTF8("showFrame(true)")); |
| 191 ASSERT_TRUE(IsWindowVisible(plugin_hwnd)); | 191 ASSERT_TRUE(IsWindowVisible(plugin_hwnd)); |
| 192 } | 192 } |
| 193 #endif | 193 #endif |
| 194 #endif //!ARCH_CPU_64_BITS | 194 #endif //!ARCH_CPU_64_BITS |
| OLD | NEW |