| 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(),
|
|
|