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

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

Issue 8313002: Revert 105667 - Send important client side event information to the server. We create a class cal... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 2 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"
(...skipping 11 matching lines...) Expand all
22 22
23 class SyncSchedulerWhiteboxTest : public testing::Test { 23 class SyncSchedulerWhiteboxTest : public testing::Test {
24 public: 24 public:
25 virtual void SetUp() { 25 virtual void SetUp() {
26 syncdb_.SetUp(); 26 syncdb_.SetUp();
27 Syncer* syncer = new Syncer(); 27 Syncer* syncer = new Syncer();
28 registrar_.reset(MockModelSafeWorkerRegistrar::PassiveBookmarks()); 28 registrar_.reset(MockModelSafeWorkerRegistrar::PassiveBookmarks());
29 connection_.reset(new MockConnectionManager(syncdb_.manager(), "Test")); 29 connection_.reset(new MockConnectionManager(syncdb_.manager(), "Test"));
30 connection_->SetServerReachable(); 30 connection_->SetServerReachable();
31 context_ = new SyncSessionContext(connection_.get(), syncdb_.manager(), 31 context_ = new SyncSessionContext(connection_.get(), syncdb_.manager(),
32 registrar_.get(), std::vector<SyncEngineEventListener*>(), NULL); 32 registrar_.get(), std::vector<SyncEngineEventListener*>());
33 context_->set_notifications_enabled(true); 33 context_->set_notifications_enabled(true);
34 context_->set_account_name("Test"); 34 context_->set_account_name("Test");
35 scheduler_.reset( 35 scheduler_.reset(
36 new SyncScheduler("TestSyncSchedulerWhitebox", context_, syncer)); 36 new SyncScheduler("TestSyncSchedulerWhitebox", context_, syncer));
37 } 37 }
38 38
39 virtual void TearDown() { 39 virtual void TearDown() {
40 scheduler_.reset(); 40 scheduler_.reset();
41 syncdb_.TearDown(); 41 syncdb_.TearDown();
42 } 42 }
(...skipping 181 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_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698