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

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

Issue 387020: Upstreaming WebKit.gyp (Closed)
Patch Set: Created 11 years, 1 month 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
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 <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
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
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/plain_text_controller.cc ('k') | webkit/tools/test_shell/simple_socket_stream_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698