OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/message_loop.h" | 5 #include "base/message_loop.h" |
6 #include "base/time.h" | 6 #include "base/time.h" |
7 #include "chrome/browser/sync/engine/sync_scheduler.h" | 7 #include "sync/engine/sync_scheduler.h" |
8 #include "chrome/browser/sync/sessions/sync_session_context.h" | 8 #include "sync/sessions/sync_session_context.h" |
9 #include "chrome/browser/sync/sessions/test_util.h" | 9 #include "sync/sessions/test_util.h" |
10 #include "chrome/browser/sync/test/engine/fake_model_safe_worker_registrar.h" | 10 #include "sync/test/engine/fake_model_safe_worker_registrar.h" |
11 #include "chrome/browser/sync/test/engine/test_directory_setter_upper.h" | 11 #include "sync/test/engine/mock_connection_manager.h" |
12 #include "chrome/browser/sync/test/engine/mock_connection_manager.h" | 12 #include "sync/test/engine/test_directory_setter_upper.h" |
13 #include "chrome/browser/sync/test/fake_extensions_activity_monitor.h" | 13 #include "sync/test/fake_extensions_activity_monitor.h" |
14 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 | 16 |
17 using base::TimeDelta; | 17 using base::TimeDelta; |
18 using base::TimeTicks; | 18 using base::TimeTicks; |
19 | 19 |
20 namespace browser_sync { | 20 namespace browser_sync { |
21 using browser_sync::Syncer; | 21 using browser_sync::Syncer; |
22 using sessions::SyncSession; | 22 using sessions::SyncSession; |
23 using sessions::SyncSessionContext; | 23 using sessions::SyncSessionContext; |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 struct SyncScheduler::SyncSessionJob job; | 267 struct SyncScheduler::SyncSessionJob job; |
268 job.purpose = SyncScheduler::SyncSessionJob::CONFIGURATION; | 268 job.purpose = SyncScheduler::SyncSessionJob::CONFIGURATION; |
269 job.scheduled_start = TimeTicks::Now(); | 269 job.scheduled_start = TimeTicks::Now(); |
270 job.is_canary_job = true; | 270 job.is_canary_job = true; |
271 SyncScheduler::JobProcessDecision decision = DecideOnJob(job); | 271 SyncScheduler::JobProcessDecision decision = DecideOnJob(job); |
272 | 272 |
273 EXPECT_EQ(decision, SyncScheduler::CONTINUE); | 273 EXPECT_EQ(decision, SyncScheduler::CONTINUE); |
274 } | 274 } |
275 | 275 |
276 } // namespace browser_sync | 276 } // namespace browser_sync |
OLD | NEW |