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

Unified Diff: ui/base/models/list_model_unittest.cc

Issue 10386118: ui: Do not expose the underline type (vector) used in ListModel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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/models/list_model.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/models/list_model_unittest.cc
diff --git a/ui/base/models/list_model_unittest.cc b/ui/base/models/list_model_unittest.cc
index 1718431ade75ab2d2a13ffd4f691fcab28c20e92..2dcaf4d39888f26b01d37d3c91ace0571b07fa03 100644
--- a/ui/base/models/list_model_unittest.cc
+++ b/ui/base/models/list_model_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.
@@ -82,9 +82,9 @@ TEST_F(ListModelTest, Add) {
EXPECT_EQ(3, model.item_count());
// First one should be FooItem(2), followed by FooItem(0) and FooItem(1)
- EXPECT_EQ(2, model.item_at(0)->id());
- EXPECT_EQ(0, model.item_at(1)->id());
- EXPECT_EQ(1, model.item_at(2)->id());
+ EXPECT_EQ(2, model.GetItemAt(0)->id());
+ EXPECT_EQ(0, model.GetItemAt(1)->id());
+ EXPECT_EQ(1, model.GetItemAt(2)->id());
}
TEST_F(ListModelTest, Remove) {
@@ -102,8 +102,8 @@ TEST_F(ListModelTest, Remove) {
ExpectCountsEqual(0, 1, 0);
EXPECT_EQ(2, model.item_count());
- EXPECT_EQ(0, model.item_at(0)->id());
- EXPECT_EQ(2, model.item_at(1)->id());
+ EXPECT_EQ(0, model.GetItemAt(0)->id());
+ EXPECT_EQ(2, model.GetItemAt(1)->id());
// Remove all items from model and delete them.
model.DeleteAll();
« no previous file with comments | « ui/base/models/list_model.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698