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

Side by Side Diff: sync/engine/sync_scheduler_whitebox_unittest.cc

Issue 10698014: [Sync] Rename csync namespace to syncer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 years, 5 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 | « sync/engine/sync_scheduler_unittest.cc ('k') | sync/engine/syncer.h » ('j') | 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) 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 "sync/engine/sync_scheduler.h" 7 #include "sync/engine/sync_scheduler.h"
8 #include "sync/engine/throttled_data_type_tracker.h" 8 #include "sync/engine/throttled_data_type_tracker.h"
9 #include "sync/sessions/sync_session_context.h" 9 #include "sync/sessions/sync_session_context.h"
10 #include "sync/sessions/test_util.h" 10 #include "sync/sessions/test_util.h"
11 #include "sync/test/engine/fake_model_worker.h" 11 #include "sync/test/engine/fake_model_worker.h"
12 #include "sync/test/engine/mock_connection_manager.h" 12 #include "sync/test/engine/mock_connection_manager.h"
13 #include "sync/test/engine/test_directory_setter_upper.h" 13 #include "sync/test/engine/test_directory_setter_upper.h"
14 #include "sync/test/fake_extensions_activity_monitor.h" 14 #include "sync/test/fake_extensions_activity_monitor.h"
15 #include "testing/gmock/include/gmock/gmock.h" 15 #include "testing/gmock/include/gmock/gmock.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 17
18 using base::TimeDelta; 18 using base::TimeDelta;
19 using base::TimeTicks; 19 using base::TimeTicks;
20 20
21 namespace csync { 21 namespace syncer {
22 using csync::Syncer; 22 using syncer::Syncer;
23 using sessions::SyncSession; 23 using sessions::SyncSession;
24 using sessions::SyncSessionContext; 24 using sessions::SyncSessionContext;
25 using sessions::SyncSourceInfo; 25 using sessions::SyncSourceInfo;
26 using sync_pb::GetUpdatesCallerInfo; 26 using sync_pb::GetUpdatesCallerInfo;
27 27
28 class SyncSchedulerWhiteboxTest : public testing::Test { 28 class SyncSchedulerWhiteboxTest : public testing::Test {
29 public: 29 public:
30 virtual void SetUp() { 30 virtual void SetUp() {
31 dir_maker_.SetUp(); 31 dir_maker_.SetUp();
32 Syncer* syncer = new Syncer(); 32 Syncer* syncer = new Syncer();
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 258
259 struct SyncScheduler::SyncSessionJob job; 259 struct SyncScheduler::SyncSessionJob job;
260 job.purpose = SyncScheduler::SyncSessionJob::CONFIGURATION; 260 job.purpose = SyncScheduler::SyncSessionJob::CONFIGURATION;
261 job.scheduled_start = TimeTicks::Now(); 261 job.scheduled_start = TimeTicks::Now();
262 job.is_canary_job = true; 262 job.is_canary_job = true;
263 SyncScheduler::JobProcessDecision decision = DecideOnJob(job); 263 SyncScheduler::JobProcessDecision decision = DecideOnJob(job);
264 264
265 EXPECT_EQ(decision, SyncScheduler::CONTINUE); 265 EXPECT_EQ(decision, SyncScheduler::CONTINUE);
266 } 266 }
267 267
268 } // namespace csync 268 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/engine/sync_scheduler_unittest.cc ('k') | sync/engine/syncer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698