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

Side by Side Diff: chrome/browser/sync/engine/sync_scheduler_unittest.cc

Issue 7828055: Move sync test code out of chrome/test (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/callback.h" 6 #include "base/callback.h"
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/memory/scoped_callback_factory.h" 8 #include "base/memory/scoped_callback_factory.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/task.h" 10 #include "base/task.h"
11 #include "base/test/test_timeouts.h" 11 #include "base/test/test_timeouts.h"
12 #include "chrome/browser/sync/engine/mock_model_safe_workers.h" 12 #include "chrome/browser/sync/engine/mock_model_safe_workers.h"
13 #include "chrome/browser/sync/engine/sync_scheduler.h" 13 #include "chrome/browser/sync/engine/sync_scheduler.h"
14 #include "chrome/browser/sync/engine/syncer.h" 14 #include "chrome/browser/sync/engine/syncer.h"
15 #include "chrome/browser/sync/sessions/test_util.h" 15 #include "chrome/browser/sync/sessions/test_util.h"
16 #include "chrome/test/sync/engine/mock_connection_manager.h" 16 #include "chrome/browser/sync/test/engine/mock_connection_manager.h"
17 #include "chrome/test/sync/engine/test_directory_setter_upper.h" 17 #include "chrome/browser/sync/test/engine/test_directory_setter_upper.h"
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
19 #include "testing/gmock/include/gmock/gmock.h" 19 #include "testing/gmock/include/gmock/gmock.h"
20 20
21 using base::TimeDelta; 21 using base::TimeDelta;
22 using base::TimeTicks; 22 using base::TimeTicks;
23 using testing::_; 23 using testing::_;
24 using testing::AtLeast; 24 using testing::AtLeast;
25 using testing::DoAll; 25 using testing::DoAll;
26 using testing::Eq; 26 using testing::Eq;
27 using testing::Invoke; 27 using testing::Invoke;
(...skipping 1042 matching lines...) Expand 10 before | Expand all | Expand 10 after
1070 PumpLoop(); 1070 PumpLoop();
1071 // Pump again to run job. 1071 // Pump again to run job.
1072 PumpLoop(); 1072 PumpLoop();
1073 1073
1074 scheduler()->Stop(); 1074 scheduler()->Stop();
1075 1075
1076 EXPECT_TRUE(expected == context()->previous_session_routing_info()); 1076 EXPECT_TRUE(expected == context()->previous_session_routing_info());
1077 } 1077 }
1078 1078
1079 } // namespace browser_sync 1079 } // namespace browser_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698