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

Side by Side Diff: content/renderer/pepper/pepper_url_request_unittest.cc

Issue 10977073: Delete some unused code found by -Wunused-function (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: leiz Created 8 years, 2 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 | « content/renderer/browser_plugin/browser_plugin_bindings.cc ('k') | net/base/net_util.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/compiler_specific.h" 5 #include "base/compiler_specific.h"
6 #include "content/public/test/render_view_test.h" 6 #include "content/public/test/render_view_test.h"
7 #include "ppapi/proxy/connection.h" 7 #include "ppapi/proxy/connection.h"
8 #include "ppapi/proxy/url_request_info_resource.h" 8 #include "ppapi/proxy/url_request_info_resource.h"
9 #include "ppapi/shared_impl/test_globals.h" 9 #include "ppapi/shared_impl/test_globals.h"
10 #include "ppapi/shared_impl/url_request_info_data.h" 10 #include "ppapi/shared_impl/url_request_info_data.h"
(...skipping 24 matching lines...) Expand all
35 35
36 bool IsExpected(const WebCString& web_string, const char* expected) { 36 bool IsExpected(const WebCString& web_string, const char* expected) {
37 const char* result = web_string.data(); 37 const char* result = web_string.data();
38 return strcmp(result, expected) == 0; 38 return strcmp(result, expected) == 0;
39 } 39 }
40 40
41 bool IsExpected(const WebString& web_string, const char* expected) { 41 bool IsExpected(const WebString& web_string, const char* expected) {
42 return IsExpected(web_string.utf8(), expected); 42 return IsExpected(web_string.utf8(), expected);
43 } 43 }
44 44
45 bool IsNullOrEmpty(const WebString& web_string) {
46 return web_string.isNull() || web_string.isEmpty();
47 }
48
49 // The base class destructor is protected, so derive. 45 // The base class destructor is protected, so derive.
50 class TestWebFrameClient : public WebFrameClient { 46 class TestWebFrameClient : public WebFrameClient {
51 }; 47 };
52 48
53 } // namespace 49 } // namespace
54 50
55 using ppapi::proxy::URLRequestInfoResource; 51 using ppapi::proxy::URLRequestInfoResource;
56 using ppapi::URLRequestInfoData; 52 using ppapi::URLRequestInfoData;
57 53
58 // TODO(brettw) move to content namespace when url_request_info_util.h is moved 54 // TODO(brettw) move to content namespace when url_request_info_util.h is moved
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 EXPECT_TRUE(IsExpected( 251 EXPECT_TRUE(IsExpected(
256 GetHeaderValue("foo"), "bar")); 252 GetHeaderValue("foo"), "bar"));
257 EXPECT_TRUE(IsExpected( 253 EXPECT_TRUE(IsExpected(
258 GetHeaderValue("bar"), "baz")); 254 GetHeaderValue("bar"), "baz"));
259 } 255 }
260 256
261 // TODO(bbudge) Unit tests for AppendDataToBody, AppendFileToBody. 257 // TODO(bbudge) Unit tests for AppendDataToBody, AppendFileToBody.
262 258
263 } // namespace ppapi 259 } // namespace ppapi
264 } // namespace webkit 260 } // namespace webkit
OLDNEW
« no previous file with comments | « content/renderer/browser_plugin/browser_plugin_bindings.cc ('k') | net/base/net_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698