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

Side by Side Diff: webkit/child/multipart_response_delegate_unittest.cc

Issue 20003004: reland crrev.com/212927 Move webkitplatformsupport_impl and related from glue to child (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & allocator dep for components_unittests in shared_library2 Created 7 years, 5 months 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 | Annotate | Revision Log
« no previous file with comments | « webkit/child/multipart_response_delegate.cc ('k') | webkit/child/resource_loader_bridge.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <vector> 5 #include <vector>
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "testing/gtest/include/gtest/gtest.h"
8 #include "third_party/WebKit/public/platform/WebString.h" 9 #include "third_party/WebKit/public/platform/WebString.h"
9 #include "third_party/WebKit/public/platform/WebURL.h" 10 #include "third_party/WebKit/public/platform/WebURL.h"
10 #include "third_party/WebKit/public/platform/WebURLLoaderClient.h" 11 #include "third_party/WebKit/public/platform/WebURLLoaderClient.h"
11 #include "third_party/WebKit/public/platform/WebURLResponse.h" 12 #include "third_party/WebKit/public/platform/WebURLResponse.h"
12 #include "webkit/glue/multipart_response_delegate.h" 13 #include "webkit/child/multipart_response_delegate.h"
13 #include "testing/gtest/include/gtest/gtest.h"
14 14
15 using std::string; 15 using std::string;
16 using WebKit::WebString; 16 using WebKit::WebString;
17 using WebKit::WebURL; 17 using WebKit::WebURL;
18 using WebKit::WebURLError; 18 using WebKit::WebURLError;
19 using WebKit::WebURLLoader; 19 using WebKit::WebURLLoader;
20 using WebKit::WebURLLoaderClient; 20 using WebKit::WebURLLoaderClient;
21 using WebKit::WebURLRequest; 21 using WebKit::WebURLRequest;
22 using WebKit::WebURLResponse; 22 using WebKit::WebURLResponse;
23 using webkit_glue::MultipartResponseDelegate; 23 using webkit_glue::MultipartResponseDelegate;
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 static_cast<int>(data2.length()), 666 static_cast<int>(data2.length()),
667 static_cast<int>(data2.length())); 667 static_cast<int>(data2.length()));
668 EXPECT_EQ(2, client.received_response_); 668 EXPECT_EQ(2, client.received_response_);
669 EXPECT_EQ(string("response data2"), client.data_); 669 EXPECT_EQ(string("response data2"), client.data_);
670 EXPECT_EQ(static_cast<int>(data.length()) + static_cast<int>(data2.length()), 670 EXPECT_EQ(static_cast<int>(data.length()) + static_cast<int>(data2.length()),
671 client.total_encoded_data_length_); 671 client.total_encoded_data_length_);
672 EXPECT_TRUE(client.response_.isMultipartPayload()); 672 EXPECT_TRUE(client.response_.isMultipartPayload());
673 } 673 }
674 674
675 } // namespace 675 } // namespace
OLDNEW
« no previous file with comments | « webkit/child/multipart_response_delegate.cc ('k') | webkit/child/resource_loader_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698