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

Unified Diff: content/common/common_param_traits_unittest.cc

Issue 1497743005: Allow huge data: URIs only via WebView.loadDataWithBaseUrl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed the test Created 5 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
Index: content/common/common_param_traits_unittest.cc
diff --git a/content/common/common_param_traits_unittest.cc b/content/common/common_param_traits_unittest.cc
index aefab1c63a61097637f72ae7bc854d73535ebffc..31491dfed6dafa75dfc7be6f858620c2f9650aa9 100644
--- a/content/common/common_param_traits_unittest.cc
+++ b/content/common/common_param_traits_unittest.cc
@@ -8,7 +8,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/values.h"
#include "content/public/common/common_param_traits.h"
-#include "content/public/common/url_utils.h"
+#include "content/public/common/content_constants.h"
#include "ipc/ipc_message.h"
#include "ipc/ipc_message_utils.h"
#include "net/base/host_port_pair.h"
@@ -53,7 +53,7 @@ TEST(IPCMessageTest, Serialize) {
// Test an excessively long GURL.
{
const std::string url = std::string("http://example.org/").append(
- content::GetMaxURLChars() + 1, 'a');
+ content::kMaxURLChars + 1, 'a');
GURL input(url.c_str());
IPC::Message msg(1, 2, IPC::Message::PRIORITY_NORMAL);
IPC::ParamTraits<GURL>::Write(&msg, input);
« no previous file with comments | « content/child/service_worker/service_worker_dispatcher.cc ('k') | content/common/content_constants_internal.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698