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 "base/macros.h" | 5 #include "base/macros.h" |
| 6 #include "base/memory/ptr_util.h" |
6 #include "blimp/engine/browser/font_data_fetcher.h" | 7 #include "blimp/engine/browser/font_data_fetcher.h" |
7 #include "blimp/engine/mojo/font_fetcher_mojo_impl.h" | 8 #include "blimp/engine/mojo/font_fetcher_mojo_impl.h" |
8 #include "mojo/public/cpp/system/buffer.h" | 9 #include "mojo/public/cpp/system/buffer.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
10 | 11 |
11 namespace blimp { | 12 namespace blimp { |
12 namespace engine { | 13 namespace engine { |
13 namespace { | 14 namespace { |
14 | 15 |
15 const char kFakeHash[] = "fake hash"; | 16 const char kFakeHash[] = "fake hash"; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 // Expect that dummy font data is written correctly to a Mojo DataPipe. | 68 // Expect that dummy font data is written correctly to a Mojo DataPipe. |
68 mojo_ptr->GetFontStream(kFakeHash, base::Bind(&VerifyDataWriteCorrectly)); | 69 mojo_ptr->GetFontStream(kFakeHash, base::Bind(&VerifyDataWriteCorrectly)); |
69 | 70 |
70 // Expect empty handle if the font stream is empty. | 71 // Expect empty handle if the font stream is empty. |
71 mojo_ptr->GetFontStream("", base::Bind(&VerifyEmptyDataWrite)); | 72 mojo_ptr->GetFontStream("", base::Bind(&VerifyEmptyDataWrite)); |
72 } | 73 } |
73 | 74 |
74 } // namespace | 75 } // namespace |
75 } // namespace engine | 76 } // namespace engine |
76 } // namespace blimp | 77 } // namespace blimp |
OLD | NEW |