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 <memory> | 5 #include <memory> |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/message_loop/message_loop.h" |
9 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
10 #include "base/threading/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
11 #include "base/time/time.h" | 12 #include "base/time/time.h" |
12 #include "storage/browser/fileapi/timed_task_helper.h" | 13 #include "storage/browser/fileapi/timed_task_helper.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
14 | 15 |
15 using storage::TimedTaskHelper; | 16 using storage::TimedTaskHelper; |
16 | 17 |
17 namespace content { | 18 namespace content { |
18 | 19 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 78 |
78 ASSERT_TRUE(embedder.timer()->IsRunning()); | 79 ASSERT_TRUE(embedder.timer()->IsRunning()); |
79 } | 80 } |
80 | 81 |
81 // At this point the callback is still in the message queue but | 82 // At this point the callback is still in the message queue but |
82 // embedder is gone. | 83 // embedder is gone. |
83 base::RunLoop().RunUntilIdle(); | 84 base::RunLoop().RunUntilIdle(); |
84 } | 85 } |
85 | 86 |
86 } // namespace content | 87 } // namespace content |
OLD | NEW |