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 |