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

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

Issue 7056011: Replace all usage of FileAutoDeleter with ScopedTempDir. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/sessions/session_service_unittest.cc ('k') | no next file » | 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) 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 11 matching lines...) Expand all
22 #include "chrome/browser/sync/profile_sync_factory_mock.h" 22 #include "chrome/browser/sync/profile_sync_factory_mock.h"
23 #include "chrome/browser/sync/profile_sync_test_util.h" 23 #include "chrome/browser/sync/profile_sync_test_util.h"
24 #include "chrome/browser/sync/protocol/session_specifics.pb.h" 24 #include "chrome/browser/sync/protocol/session_specifics.pb.h"
25 #include "chrome/browser/sync/protocol/sync.pb.h" 25 #include "chrome/browser/sync/protocol/sync.pb.h"
26 #include "chrome/browser/sync/syncable/directory_manager.h" 26 #include "chrome/browser/sync/syncable/directory_manager.h"
27 #include "chrome/browser/sync/syncable/model_type.h" 27 #include "chrome/browser/sync/syncable/model_type.h"
28 #include "chrome/browser/sync/syncable/syncable.h" 28 #include "chrome/browser/sync/syncable/syncable.h"
29 #include "chrome/browser/sync/test_profile_sync_service.h" 29 #include "chrome/browser/sync/test_profile_sync_service.h"
30 #include "chrome/common/net/gaia/gaia_constants.h" 30 #include "chrome/common/net/gaia/gaia_constants.h"
31 #include "chrome/test/browser_with_test_window_test.h" 31 #include "chrome/test/browser_with_test_window_test.h"
32 #include "chrome/test/file_test_utils.h"
33 #include "chrome/test/profile_mock.h" 32 #include "chrome/test/profile_mock.h"
34 #include "chrome/test/sync/engine/test_id_factory.h" 33 #include "chrome/test/sync/engine/test_id_factory.h"
35 #include "chrome/test/testing_profile.h" 34 #include "chrome/test/testing_profile.h"
36 #include "content/browser/browser_thread.h" 35 #include "content/browser/browser_thread.h"
37 #include "content/common/notification_observer.h" 36 #include "content/common/notification_observer.h"
38 #include "content/common/notification_registrar.h" 37 #include "content/common/notification_registrar.h"
39 #include "content/common/notification_service.h" 38 #include "content/common/notification_service.h"
40 #include "testing/gmock/include/gmock/gmock.h" 39 #include "testing/gmock/include/gmock/gmock.h"
41 #include "testing/gtest/include/gtest/gtest.h" 40 #include "testing/gtest/include/gtest/gtest.h"
42 41
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 ASSERT_FALSE(model_associator_->tab_pool_.full()); 439 ASSERT_FALSE(model_associator_->tab_pool_.full());
441 for (size_t i = 0; i < num_ids; ++i) { 440 for (size_t i = 0; i < num_ids; ++i) {
442 model_associator_->tab_pool_.FreeTabNode(node_ids[i]); 441 model_associator_->tab_pool_.FreeTabNode(node_ids[i]);
443 } 442 }
444 ASSERT_EQ(num_ids, model_associator_->tab_pool_.capacity()); 443 ASSERT_EQ(num_ids, model_associator_->tab_pool_.capacity());
445 ASSERT_FALSE(model_associator_->tab_pool_.empty()); 444 ASSERT_FALSE(model_associator_->tab_pool_.empty());
446 ASSERT_TRUE(model_associator_->tab_pool_.full()); 445 ASSERT_TRUE(model_associator_->tab_pool_.full());
447 } 446 }
448 447
449 } // namespace browser_sync 448 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sessions/session_service_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698