OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "blimp/engine/browser/font_data_fetcher_impl.h" | 5 #include "blimp/engine/browser/font_data_fetcher_impl.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
| 9 #include "base/memory/ptr_util.h" |
9 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
10 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
11 #include "base/threading/thread.h" | 12 #include "base/threading/thread.h" |
12 #include "base/threading/thread_task_runner_handle.h" | 13 #include "base/threading/thread_task_runner_handle.h" |
13 #include "net/base/test_completion_callback.h" | 14 #include "net/base/test_completion_callback.h" |
14 #include "testing/gmock/include/gmock/gmock.h" | 15 #include "testing/gmock/include/gmock/gmock.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
16 | 17 |
17 using testing::_; | 18 using testing::_; |
18 | 19 |
(...skipping 28 matching lines...) Expand all Loading... |
47 font_fetcher_->FetchFontStream( | 48 font_fetcher_->FetchFontStream( |
48 "fake font hash", | 49 "fake font hash", |
49 base::Bind(&FontDataFetcherImplTest::OnFontResponse, | 50 base::Bind(&FontDataFetcherImplTest::OnFontResponse, |
50 base::Unretained(this))); | 51 base::Unretained(this))); |
51 | 52 |
52 base::RunLoop().RunUntilIdle(); | 53 base::RunLoop().RunUntilIdle(); |
53 } | 54 } |
54 | 55 |
55 } // namespace engine | 56 } // namespace engine |
56 } // namespace blimp | 57 } // namespace blimp |
OLD | NEW |