OLD | NEW |
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 "sync/internal_api/public/attachments/attachment_service_impl.h" | 5 #include "sync/internal_api/public/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/macros.h" |
13 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
14 #include "base/message_loop/message_loop.h" | 15 #include "base/message_loop/message_loop.h" |
15 #include "base/run_loop.h" | 16 #include "base/run_loop.h" |
16 #include "base/thread_task_runner_handle.h" | 17 #include "base/thread_task_runner_handle.h" |
17 #include "base/timer/mock_timer.h" | 18 #include "base/timer/mock_timer.h" |
18 #include "sync/api/attachments/attachment_store_backend.h" | 19 #include "sync/api/attachments/attachment_store_backend.h" |
19 #include "sync/internal_api/public/attachments/attachment_util.h" | 20 #include "sync/internal_api/public/attachments/attachment_util.h" |
20 #include "sync/internal_api/public/attachments/fake_attachment_downloader.h" | 21 #include "sync/internal_api/public/attachments/fake_attachment_downloader.h" |
21 #include "sync/internal_api/public/attachments/fake_attachment_uploader.h" | 22 #include "sync/internal_api/public/attachments/fake_attachment_uploader.h" |
22 #include "testing/gmock/include/gmock/gmock-matchers.h" | 23 #include "testing/gmock/include/gmock/gmock-matchers.h" |
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
631 net::NetworkChangeNotifier::NotifyObserversOfNetworkChangeForTests( | 632 net::NetworkChangeNotifier::NotifyObserversOfNetworkChangeForTests( |
632 net::NetworkChangeNotifier::CONNECTION_WIFI); | 633 net::NetworkChangeNotifier::CONNECTION_WIFI); |
633 RunLoop(); | 634 RunLoop(); |
634 | 635 |
635 // No longer in backoff. | 636 // No longer in backoff. |
636 ASSERT_TRUE(mock_timer()->IsRunning()); | 637 ASSERT_TRUE(mock_timer()->IsRunning()); |
637 ASSERT_EQ(base::TimeDelta(), mock_timer()->GetCurrentDelay()); | 638 ASSERT_EQ(base::TimeDelta(), mock_timer()->GetCurrentDelay()); |
638 } | 639 } |
639 | 640 |
640 } // namespace syncer | 641 } // namespace syncer |
OLD | NEW |