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

Side by Side Diff: webkit/glue/webplugin_impl_unittest.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
« no previous file with comments | « webkit/glue/webplugin_impl.cc ('k') | webkit/glue/webpreferences.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 "base/string_util.h" 5 #include "base/string_util.h"
6 #include "testing/gtest/include/gtest/gtest.h" 6 #include "testing/gtest/include/gtest/gtest.h"
7 #include "webkit/api/public/WebCString.h" 7 #include "third_party/WebKit/WebKit/chromium/public/WebCString.h"
8 #include "webkit/api/public/WebString.h" 8 #include "third_party/WebKit/WebKit/chromium/public/WebString.h"
9 #include "webkit/api/public/WebURLRequest.h" 9 #include "third_party/WebKit/WebKit/chromium/public/WebURLRequest.h"
10 #include "webkit/glue/webplugin_impl.h" 10 #include "webkit/glue/webplugin_impl.h"
11 11
12 using WebKit::WebHTTPBody; 12 using WebKit::WebHTTPBody;
13 using WebKit::WebString; 13 using WebKit::WebString;
14 using WebKit::WebURLRequest; 14 using WebKit::WebURLRequest;
15 using webkit_glue::WebPluginImpl; 15 using webkit_glue::WebPluginImpl;
16 16
17 namespace { 17 namespace {
18 18
19 class WebPluginImplTest : public testing::Test { 19 class WebPluginImplTest : public testing::Test {
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 EXPECT_EQ(0U, GetHeader(request, "bar").length()); 223 EXPECT_EQ(0U, GetHeader(request, "bar").length());
224 EXPECT_EQ(0U, GetHeader(request, "Content-length").length()); 224 EXPECT_EQ(0U, GetHeader(request, "Content-length").length());
225 225
226 std::string body = GetBodyText(request); 226 std::string body = GetBodyText(request);
227 227
228 EXPECT_EQ(0xF0, (unsigned char)body[0]); 228 EXPECT_EQ(0xF0, (unsigned char)body[0]);
229 EXPECT_EQ(0xFF, (unsigned char)body[1]); 229 EXPECT_EQ(0xFF, (unsigned char)body[1]);
230 EXPECT_EQ(0xFF, (unsigned char)body[2]); 230 EXPECT_EQ(0xFF, (unsigned char)body[2]);
231 EXPECT_EQ(0xFF, (unsigned char)body[3]); 231 EXPECT_EQ(0xFF, (unsigned char)body[3]);
232 } 232 }
OLDNEW
« no previous file with comments | « webkit/glue/webplugin_impl.cc ('k') | webkit/glue/webpreferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698