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); |
} |