| 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" | 13 #include "third_party/WebKit/WebKit/chromium/public/WebData.h" |
| 14 #include "webkit/api/public/WebFrame.h" | 14 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" |
| 15 #include "webkit/api/public/WebInputEvent.h" | 15 #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h" |
| 16 #include "webkit/api/public/WebScriptSource.h" | 16 #include "third_party/WebKit/WebKit/chromium/public/WebScriptSource.h" |
| 17 #include "webkit/api/public/WebView.h" | 17 #include "third_party/WebKit/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; |
| 24 | 24 |
| 25 #if defined(OS_WIN) | 25 #if defined(OS_WIN) |
| 26 #define TEST_PLUGIN_NAME "npapi_test_plugin.dll" | 26 #define TEST_PLUGIN_NAME "npapi_test_plugin.dll" |
| 27 #elif defined(OS_MACOSX) | 27 #elif defined(OS_MACOSX) |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 ASSERT_TRUE(IsWindowVisible(plugin_hwnd)); | 200 ASSERT_TRUE(IsWindowVisible(plugin_hwnd)); |
| 201 | 201 |
| 202 main_frame->executeScript(WebString::fromUTF8("showFrame(false)")); | 202 main_frame->executeScript(WebString::fromUTF8("showFrame(false)")); |
| 203 ASSERT_FALSE(IsWindowVisible(plugin_hwnd)); | 203 ASSERT_FALSE(IsWindowVisible(plugin_hwnd)); |
| 204 | 204 |
| 205 main_frame->executeScript(WebString::fromUTF8("showFrame(true)")); | 205 main_frame->executeScript(WebString::fromUTF8("showFrame(true)")); |
| 206 ASSERT_TRUE(IsWindowVisible(plugin_hwnd)); | 206 ASSERT_TRUE(IsWindowVisible(plugin_hwnd)); |
| 207 } | 207 } |
| 208 #endif | 208 #endif |
| 209 #endif //!ARCH_CPU_64_BITS | 209 #endif //!ARCH_CPU_64_BITS |
| OLD | NEW |