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

Unified Diff: webkit/plugins/npapi/webplugin_impl_unittest.cc

Issue 6012002: Move the NPAPI files from webkit/glue/plugins to webkit/plugins/npapi and put... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/plugins/npapi/webplugin_impl.cc ('k') | webkit/plugins/npapi/webplugin_page_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/npapi/webplugin_impl_unittest.cc
===================================================================
--- webkit/plugins/npapi/webplugin_impl_unittest.cc (revision 0)
+++ webkit/plugins/npapi/webplugin_impl_unittest.cc (working copy)
@@ -7,21 +7,18 @@
#include "third_party/WebKit/WebKit/chromium/public/WebCString.h"
#include "third_party/WebKit/WebKit/chromium/public/WebString.h"
#include "third_party/WebKit/WebKit/chromium/public/WebURLRequest.h"
-#include "webkit/glue/plugins/webplugin_impl.h"
+#include "webkit/plugins/npapi/webplugin_impl.h"
using WebKit::WebHTTPBody;
using WebKit::WebString;
using WebKit::WebURLRequest;
-using webkit_glue::WebPluginImpl;
+namespace webkit {
+namespace npapi {
+
namespace {
-class WebPluginImplTest : public testing::Test {
-};
-
-}
-
-static std::string GetHeader(const WebURLRequest& request, const char* name) {
+std::string GetHeader(const WebURLRequest& request, const char* name) {
std::string result;
TrimWhitespace(
request.httpHeaderField(WebString::fromUTF8(name)).utf8(),
@@ -30,7 +27,7 @@
return result;
}
-static std::string GetBodyText(const WebURLRequest& request) {
+std::string GetBodyText(const WebURLRequest& request) {
const WebHTTPBody& body = request.httpBody();
if (body.isNull())
return std::string();
@@ -48,6 +45,8 @@
return result;
}
+} // namespace
+
// The Host functions for NPN_PostURL and NPN_PostURLNotify
// need to parse out some HTTP headers. Make sure it works
// with the following tests
@@ -230,3 +229,6 @@
EXPECT_EQ(0xFF, (unsigned char)body[2]);
EXPECT_EQ(0xFF, (unsigned char)body[3]);
}
+
+} // namespace npapi
+} // namespace webkit
« no previous file with comments | « webkit/plugins/npapi/webplugin_impl.cc ('k') | webkit/plugins/npapi/webplugin_page_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698