| 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 "webkit/api/public/WebData.h" |
| 14 #include "webkit/api/public/WebInputEvent.h" |
| 13 #include "webkit/api/public/WebScriptSource.h" | 15 #include "webkit/api/public/WebScriptSource.h" |
| 14 #include "webkit/api/public/WebInputEvent.h" | |
| 15 #include "webkit/glue/webframe.h" | 16 #include "webkit/glue/webframe.h" |
| 16 #include "webkit/glue/webview.h" | 17 #include "webkit/glue/webview.h" |
| 17 #include "webkit/tools/test_shell/test_shell.h" | 18 #include "webkit/tools/test_shell/test_shell.h" |
| 18 #include "webkit/tools/test_shell/test_shell_test.h" | 19 #include "webkit/tools/test_shell/test_shell_test.h" |
| 19 | 20 |
| 20 using WebKit::WebScriptSource; | 21 using WebKit::WebScriptSource; |
| 21 using WebKit::WebString; | 22 using WebKit::WebString; |
| 22 | 23 |
| 23 #if defined(OS_WIN) | 24 #if defined(OS_WIN) |
| 24 #define TEST_PLUGIN_NAME "npapi_test_plugin.dll" | 25 #define TEST_PLUGIN_NAME "npapi_test_plugin.dll" |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 main_frame->ExecuteScript(WebString::fromUTF8("showPlugin(true)")); | 197 main_frame->ExecuteScript(WebString::fromUTF8("showPlugin(true)")); |
| 197 ASSERT_TRUE(IsWindowVisible(plugin_hwnd)); | 198 ASSERT_TRUE(IsWindowVisible(plugin_hwnd)); |
| 198 | 199 |
| 199 main_frame->ExecuteScript(WebString::fromUTF8("showFrame(false)")); | 200 main_frame->ExecuteScript(WebString::fromUTF8("showFrame(false)")); |
| 200 ASSERT_FALSE(IsWindowVisible(plugin_hwnd)); | 201 ASSERT_FALSE(IsWindowVisible(plugin_hwnd)); |
| 201 | 202 |
| 202 main_frame->ExecuteScript(WebString::fromUTF8("showFrame(true)")); | 203 main_frame->ExecuteScript(WebString::fromUTF8("showFrame(true)")); |
| 203 ASSERT_TRUE(IsWindowVisible(plugin_hwnd)); | 204 ASSERT_TRUE(IsWindowVisible(plugin_hwnd)); |
| 204 } | 205 } |
| 205 #endif | 206 #endif |
| OLD | NEW |