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

Unified Diff: ui/base/dragdrop/os_exchange_data_win_unittest.cc

Issue 9447084: Refactor Pickle Read methods to use higher performance PickleIterator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile (racing with incoming CLs) 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/dragdrop/gtk_dnd_util.cc ('k') | webkit/fileapi/file_system_directory_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/dragdrop/os_exchange_data_win_unittest.cc
diff --git a/ui/base/dragdrop/os_exchange_data_win_unittest.cc b/ui/base/dragdrop/os_exchange_data_win_unittest.cc
index 42b5dafbda419eb19a5a92f750f4a96bd0f563a7..abc67c71072f10ad096045f4a8a42d679f08f7d7 100644
--- a/ui/base/dragdrop/os_exchange_data_win_unittest.cc
+++ b/ui/base/dragdrop/os_exchange_data_win_unittest.cc
@@ -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.
@@ -350,11 +350,11 @@ TEST(OSExchangeDataTest, TestPickledData) {
Pickle restored_pickle;
EXPECT_TRUE(copy.GetPickledData(test_cf, &restored_pickle));
- void* p_iterator = NULL;
+ PickleIterator iterator(restored_pickle);
int value;
- EXPECT_TRUE(restored_pickle.ReadInt(&p_iterator, &value));
+ EXPECT_TRUE(restored_pickle.ReadInt(&iterator, &value));
EXPECT_EQ(1, value);
- EXPECT_TRUE(restored_pickle.ReadInt(&p_iterator, &value));
+ EXPECT_TRUE(restored_pickle.ReadInt(&iterator, &value));
EXPECT_EQ(2, value);
}
« no previous file with comments | « ui/base/dragdrop/gtk_dnd_util.cc ('k') | webkit/fileapi/file_system_directory_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698