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

Side by Side Diff: chrome/browser/sync/profile_sync_service_session_unittest.cc

Issue 7474025: Move more files from chrome/test to chrome/test/base, part #2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <map> 5 #include <map>
6 #include <string> 6 #include <string>
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/scoped_temp_dir.h" 10 #include "base/scoped_temp_dir.h"
(...skipping 12 matching lines...) Expand all
23 #include "chrome/browser/sync/profile_sync_factory_mock.h" 23 #include "chrome/browser/sync/profile_sync_factory_mock.h"
24 #include "chrome/browser/sync/profile_sync_test_util.h" 24 #include "chrome/browser/sync/profile_sync_test_util.h"
25 #include "chrome/browser/sync/protocol/session_specifics.pb.h" 25 #include "chrome/browser/sync/protocol/session_specifics.pb.h"
26 #include "chrome/browser/sync/protocol/sync.pb.h" 26 #include "chrome/browser/sync/protocol/sync.pb.h"
27 #include "chrome/browser/sync/syncable/directory_manager.h" 27 #include "chrome/browser/sync/syncable/directory_manager.h"
28 #include "chrome/browser/sync/syncable/model_type.h" 28 #include "chrome/browser/sync/syncable/model_type.h"
29 #include "chrome/browser/sync/syncable/syncable.h" 29 #include "chrome/browser/sync/syncable/syncable.h"
30 #include "chrome/browser/sync/test_profile_sync_service.h" 30 #include "chrome/browser/sync/test_profile_sync_service.h"
31 #include "chrome/common/chrome_notification_types.h" 31 #include "chrome/common/chrome_notification_types.h"
32 #include "chrome/common/net/gaia/gaia_constants.h" 32 #include "chrome/common/net/gaia/gaia_constants.h"
33 #include "chrome/test/base/profile_mock.h"
33 #include "chrome/test/browser_with_test_window_test.h" 34 #include "chrome/test/browser_with_test_window_test.h"
34 #include "chrome/test/profile_mock.h"
35 #include "chrome/test/sync/engine/test_id_factory.h" 35 #include "chrome/test/sync/engine/test_id_factory.h"
36 #include "chrome/test/testing_profile.h" 36 #include "chrome/test/testing_profile.h"
37 #include "content/browser/browser_thread.h" 37 #include "content/browser/browser_thread.h"
38 #include "content/common/notification_observer.h" 38 #include "content/common/notification_observer.h"
39 #include "content/common/notification_registrar.h" 39 #include "content/common/notification_registrar.h"
40 #include "content/common/notification_service.h" 40 #include "content/common/notification_service.h"
41 #include "testing/gmock/include/gmock/gmock.h" 41 #include "testing/gmock/include/gmock/gmock.h"
42 #include "testing/gtest/include/gtest/gtest.h" 42 #include "testing/gtest/include/gtest/gtest.h"
43 43
44 using browser_sync::SessionChangeProcessor; 44 using browser_sync::SessionChangeProcessor;
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 ASSERT_FALSE(model_associator_->tab_pool_.full()); 441 ASSERT_FALSE(model_associator_->tab_pool_.full());
442 for (size_t i = 0; i < num_ids; ++i) { 442 for (size_t i = 0; i < num_ids; ++i) {
443 model_associator_->tab_pool_.FreeTabNode(node_ids[i]); 443 model_associator_->tab_pool_.FreeTabNode(node_ids[i]);
444 } 444 }
445 ASSERT_EQ(num_ids, model_associator_->tab_pool_.capacity()); 445 ASSERT_EQ(num_ids, model_associator_->tab_pool_.capacity());
446 ASSERT_FALSE(model_associator_->tab_pool_.empty()); 446 ASSERT_FALSE(model_associator_->tab_pool_.empty());
447 ASSERT_TRUE(model_associator_->tab_pool_.full()); 447 ASSERT_TRUE(model_associator_->tab_pool_.full());
448 } 448 }
449 449
450 } // namespace browser_sync 450 } // namespace browser_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698