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

Side by Side Diff: chrome/browser/sync/engine/sync_scheduler_whitebox_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/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
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
OLDNEW
« no previous file with comments | « chrome/browser/sync/engine/sync_scheduler_unittest.cc ('k') | chrome/browser/sync/engine/syncer_proto_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698