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

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

Issue 19627002: Use a direct include of the message_loop header in ppapi/, printing/, rlz/, sync/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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_impl.cc ('k') | sync/engine/syncer.cc » ('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/bind.h" 5 #include "base/bind.h"
6 #include "base/callback.h" 6 #include "base/callback.h"
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/test/test_timeouts.h" 10 #include "base/test/test_timeouts.h"
11 #include "sync/engine/backoff_delay_provider.h" 11 #include "sync/engine/backoff_delay_provider.h"
12 #include "sync/engine/sync_scheduler_impl.h" 12 #include "sync/engine/sync_scheduler_impl.h"
13 #include "sync/engine/syncer.h" 13 #include "sync/engine/syncer.h"
14 #include "sync/internal_api/public/base/model_type_invalidation_map_test_util.h" 14 #include "sync/internal_api/public/base/model_type_invalidation_map_test_util.h"
15 #include "sync/sessions/test_util.h" 15 #include "sync/sessions/test_util.h"
16 #include "sync/test/callback_counter.h" 16 #include "sync/test/callback_counter.h"
17 #include "sync/test/engine/fake_model_worker.h" 17 #include "sync/test/engine/fake_model_worker.h"
18 #include "sync/test/engine/mock_connection_manager.h" 18 #include "sync/test/engine/mock_connection_manager.h"
19 #include "sync/test/engine/test_directory_setter_upper.h" 19 #include "sync/test/engine/test_directory_setter_upper.h"
(...skipping 1284 matching lines...) Expand 10 before | Expand all | Expand 10 after
1304 // poll once more 1304 // poll once more
1305 EXPECT_CALL(*syncer(), PollSyncShare(_,_)) 1305 EXPECT_CALL(*syncer(), PollSyncShare(_,_))
1306 .WillOnce(DoAll(Invoke(sessions::test_util::SimulatePollSuccess), 1306 .WillOnce(DoAll(Invoke(sessions::test_util::SimulatePollSuccess),
1307 WithArg<1>(RecordSyncShare(&records)))); 1307 WithArg<1>(RecordSyncShare(&records))));
1308 scheduler()->OnCredentialsUpdated(); 1308 scheduler()->OnCredentialsUpdated();
1309 connection()->SetServerStatus(HttpResponse::SERVER_CONNECTION_OK); 1309 connection()->SetServerStatus(HttpResponse::SERVER_CONNECTION_OK);
1310 StopSyncScheduler(); 1310 StopSyncScheduler();
1311 } 1311 }
1312 1312
1313 } // namespace syncer 1313 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/engine/sync_scheduler_impl.cc ('k') | sync/engine/syncer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698