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

Side by Side Diff: base/containers/linked_list_unittest.cc

Issue 1538743002: Switch to standard integer types in base/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DEPS roll too Created 4 years, 12 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 unified diff | Download patch
« no previous file with comments | « base/containers/hash_tables_unittest.cc ('k') | base/containers/mru_cache.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/basictypes.h"
6 #include "base/containers/linked_list.h" 5 #include "base/containers/linked_list.h"
6 #include "base/macros.h"
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 8
9 namespace base { 9 namespace base {
10 namespace { 10 namespace {
11 11
12 class Node : public LinkNode<Node> { 12 class Node : public LinkNode<Node> {
13 public: 13 public:
14 explicit Node(int id) : id_(id) {} 14 explicit Node(int id) : id_(id) {}
15 15
16 int id() const { return id_; } 16 int id() const { return id_; }
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 Node n(1); 299 Node n(1);
300 list.Append(&n); 300 list.Append(&n);
301 n.RemoveFromList(); 301 n.RemoveFromList();
302 302
303 EXPECT_EQ(NULL, n.next()); 303 EXPECT_EQ(NULL, n.next());
304 EXPECT_EQ(NULL, n.previous()); 304 EXPECT_EQ(NULL, n.previous());
305 } 305 }
306 306
307 } // namespace 307 } // namespace
308 } // namespace base 308 } // namespace base
OLDNEW
« no previous file with comments | « base/containers/hash_tables_unittest.cc ('k') | base/containers/mru_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698