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

Side by Side Diff: components/sync/core_impl/attachments/attachment_service_impl_unittest.cc

Issue 2388973002: [Sync] Removing duplicate includes, part 2. (Closed)
Patch Set: Update for Max's comments. Created 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/sync/core/attachments/attachment_service_impl.h" 5 #include "components/sync/core/attachments/attachment_service_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/location.h" 13 #include "base/location.h"
14 #include "base/macros.h"
15 #include "base/memory/ptr_util.h" 14 #include "base/memory/ptr_util.h"
16 #include "base/memory/weak_ptr.h"
17 #include "base/message_loop/message_loop.h" 15 #include "base/message_loop/message_loop.h"
18 #include "base/run_loop.h" 16 #include "base/run_loop.h"
19 #include "base/single_thread_task_runner.h" 17 #include "base/single_thread_task_runner.h"
20 #include "base/threading/thread_task_runner_handle.h" 18 #include "base/threading/thread_task_runner_handle.h"
21 #include "base/timer/mock_timer.h" 19 #include "base/timer/mock_timer.h"
22 #include "components/sync/api/attachments/attachment_store_backend.h" 20 #include "components/sync/api/attachments/attachment_store_backend.h"
23 #include "components/sync/core/attachments/attachment_util.h" 21 #include "components/sync/core/attachments/attachment_util.h"
24 #include "components/sync/core/attachments/fake_attachment_downloader.h" 22 #include "components/sync/core/attachments/fake_attachment_downloader.h"
25 #include "components/sync/core/attachments/fake_attachment_uploader.h" 23 #include "components/sync/core/attachments/fake_attachment_uploader.h"
26 #include "testing/gmock/include/gmock/gmock-matchers.h" 24 #include "testing/gmock/include/gmock/gmock-matchers.h"
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 net::NetworkChangeNotifier::NotifyObserversOfNetworkChangeForTests( 627 net::NetworkChangeNotifier::NotifyObserversOfNetworkChangeForTests(
630 net::NetworkChangeNotifier::CONNECTION_WIFI); 628 net::NetworkChangeNotifier::CONNECTION_WIFI);
631 RunLoop(); 629 RunLoop();
632 630
633 // No longer in backoff. 631 // No longer in backoff.
634 ASSERT_TRUE(mock_timer()->IsRunning()); 632 ASSERT_TRUE(mock_timer()->IsRunning());
635 ASSERT_EQ(base::TimeDelta(), mock_timer()->GetCurrentDelay()); 633 ASSERT_EQ(base::TimeDelta(), mock_timer()->GetCurrentDelay());
636 } 634 }
637 635
638 } // namespace syncer 636 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698