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

Side by Side Diff: components/sync_driver/tab_node_pool_unittest.cc

Issue 1275003003: Componentize tab_node_pool to sync_driver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated dependencies Created 5 years, 4 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
OLDNEW
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 "chrome/browser/sync/sessions/tab_node_pool.h" 5 #include "components/sync_driver/tab_node_pool.h"
6 6
7 #include "base/logging.h"
8 #include "sync/api/sync_change.h" 7 #include "sync/api/sync_change.h"
9 #include "sync/protocol/session_specifics.pb.h" 8 #include "sync/protocol/session_specifics.pb.h"
10 #include "sync/protocol/sync.pb.h" 9 #include "sync/protocol/sync.pb.h"
11 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
12 11
13 namespace browser_sync { 12 namespace browser_sync {
14 13
15 class SyncTabNodePoolTest : public testing::Test { 14 class SyncTabNodePoolTest : public testing::Test {
16 protected: 15 protected:
17 SyncTabNodePoolTest() { pool_.SetMachineTag("tag"); } 16 SyncTabNodePoolTest() { pool_.SetMachineTag("tag"); }
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 // kFreeNodesLowWatermark. 252 // kFreeNodesLowWatermark.
254 pool_.FreeTabNode(last_sync_id, &changes); 253 pool_.FreeTabNode(last_sync_id, &changes);
255 EXPECT_FALSE(pool_.Empty()); 254 EXPECT_FALSE(pool_.Empty());
256 EXPECT_TRUE(pool_.Full()); 255 EXPECT_TRUE(pool_.Full());
257 EXPECT_EQ(TabNodePool::kFreeNodesLowWatermark, pool_.Capacity()); 256 EXPECT_EQ(TabNodePool::kFreeNodesLowWatermark, pool_.Capacity());
258 } 257 }
259 258
260 } // namespace 259 } // namespace
261 260
262 } // namespace browser_sync 261 } // namespace browser_sync
OLDNEW
« components/sync_driver/BUILD.gn ('K') | « components/sync_driver/tab_node_pool.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698