OLD | NEW |
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/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/mock_model_safe_workers.h" | 7 #include "chrome/browser/sync/engine/mock_model_safe_workers.h" |
8 #include "chrome/browser/sync/engine/sync_scheduler.h" | 8 #include "chrome/browser/sync/engine/sync_scheduler.h" |
9 #include "chrome/browser/sync/sessions/sync_session_context.h" | 9 #include "chrome/browser/sync/sessions/sync_session_context.h" |
10 #include "chrome/browser/sync/sessions/test_util.h" | 10 #include "chrome/browser/sync/sessions/test_util.h" |
11 #include "chrome/test/sync/engine/mock_connection_manager.h" | 11 #include "chrome/browser/sync/test/engine/mock_connection_manager.h" |
12 #include "chrome/test/sync/engine/test_directory_setter_upper.h" | 12 #include "chrome/browser/sync/test/engine/test_directory_setter_upper.h" |
13 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 | 15 |
16 using base::TimeDelta; | 16 using base::TimeDelta; |
17 using base::TimeTicks; | 17 using base::TimeTicks; |
18 | 18 |
19 namespace browser_sync { | 19 namespace browser_sync { |
20 using sessions::SyncSessionContext; | 20 using sessions::SyncSessionContext; |
21 using browser_sync::Syncer; | 21 using browser_sync::Syncer; |
22 | 22 |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 struct SyncScheduler::SyncSessionJob job; | 224 struct SyncScheduler::SyncSessionJob job; |
225 job.purpose = SyncScheduler::SyncSessionJob::CONFIGURATION; | 225 job.purpose = SyncScheduler::SyncSessionJob::CONFIGURATION; |
226 job.scheduled_start = TimeTicks::Now(); | 226 job.scheduled_start = TimeTicks::Now(); |
227 job.is_canary_job = true; | 227 job.is_canary_job = true; |
228 SyncScheduler::JobProcessDecision decision = DecideOnJob(job); | 228 SyncScheduler::JobProcessDecision decision = DecideOnJob(job); |
229 | 229 |
230 EXPECT_EQ(decision, SyncScheduler::CONTINUE); | 230 EXPECT_EQ(decision, SyncScheduler::CONTINUE); |
231 } | 231 } |
232 | 232 |
233 } // namespace browser_sync | 233 } // namespace browser_sync |
OLD | NEW |