| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/sync_sessions/tab_node_pool.h" | 5 #include "components/sync_sessions/tab_node_pool.h" |
| 6 | 6 |
| 7 #include <stddef.h> | |
| 8 | |
| 9 #include <vector> | 7 #include <vector> |
| 10 | 8 |
| 11 #include "components/sync/api/sync_change.h" | 9 #include "components/sync/api/sync_change.h" |
| 12 #include "components/sync/protocol/session_specifics.pb.h" | 10 #include "components/sync/protocol/session_specifics.pb.h" |
| 13 #include "components/sync/protocol/sync.pb.h" | 11 #include "components/sync/protocol/sync.pb.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 15 | 13 |
| 16 namespace sync_sessions { | 14 namespace sync_sessions { |
| 17 | 15 |
| 18 class SyncTabNodePoolTest : public testing::Test { | 16 class SyncTabNodePoolTest : public testing::Test { |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 // kFreeNodesLowWatermark. | 253 // kFreeNodesLowWatermark. |
| 256 pool_.FreeTabNode(last_sync_id, &changes); | 254 pool_.FreeTabNode(last_sync_id, &changes); |
| 257 EXPECT_FALSE(pool_.Empty()); | 255 EXPECT_FALSE(pool_.Empty()); |
| 258 EXPECT_TRUE(pool_.Full()); | 256 EXPECT_TRUE(pool_.Full()); |
| 259 EXPECT_EQ(TabNodePool::kFreeNodesLowWatermark, pool_.Capacity()); | 257 EXPECT_EQ(TabNodePool::kFreeNodesLowWatermark, pool_.Capacity()); |
| 260 } | 258 } |
| 261 | 259 |
| 262 } // namespace | 260 } // namespace |
| 263 | 261 |
| 264 } // namespace sync_sessions | 262 } // namespace sync_sessions |
| OLD | NEW |