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

Unified Diff: ui/base/clipboard/custom_data_helper_unittest.cc

Issue 9688021: Avoid using Pickle::WriteSize(), which writes an architecture-dependent amount (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/clipboard/custom_data_helper.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/clipboard/custom_data_helper_unittest.cc
===================================================================
--- ui/base/clipboard/custom_data_helper_unittest.cc (revision 125762)
+++ ui/base/clipboard/custom_data_helper_unittest.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -118,7 +118,7 @@
expected.push_back(ASCIIToUTF16("f"));
Pickle malformed;
- malformed.WriteSize(1000);
+ malformed.WriteUInt64(1000);
malformed.WriteString16(ASCIIToUTF16("hello"));
malformed.WriteString16(ASCIIToUTF16("world"));
std::vector<string16> actual(expected);
@@ -126,7 +126,7 @@
EXPECT_EQ(expected, actual);
Pickle malformed2;
- malformed2.WriteSize(1);
+ malformed2.WriteUInt64(1);
malformed2.WriteString16(ASCIIToUTF16("hello"));
std::vector<string16> actual2(expected);
ReadCustomDataTypes(malformed2.data(), malformed2.size(), &actual2);
@@ -138,7 +138,7 @@
std::map<string16, string16> result_map;
Pickle malformed;
- malformed.WriteSize(1000);
+ malformed.WriteUInt64(1000);
malformed.WriteString16(ASCIIToUTF16("hello"));
malformed.WriteString16(ASCIIToUTF16("world"));
@@ -151,7 +151,7 @@
EXPECT_EQ(0u, result_map.size());
Pickle malformed2;
- malformed2.WriteSize(1);
+ malformed2.WriteUInt64(1);
malformed2.WriteString16(ASCIIToUTF16("hello"));
ReadCustomDataForType(malformed2.data(),
« no previous file with comments | « ui/base/clipboard/custom_data_helper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698