| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #ifndef PAPPI_TESTS_TEST_TRUETYPE_FONT_H_ | 5 #ifndef PAPPI_TESTS_TEST_TRUETYPE_FONT_H_ |
| 6 #define PAPPI_TESTS_TEST_TRUETYPE_FONT_H_ | 6 #define PAPPI_TESTS_TEST_TRUETYPE_FONT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ppapi/c/dev/ppb_truetype_font_dev.h" | 10 #include "ppapi/c/dev/ppb_truetype_font_dev.h" |
| 11 #include "ppapi/c/ppb_core.h" | 11 #include "ppapi/c/ppb_core.h" |
| 12 #include "ppapi/c/ppb_var.h" | 12 #include "ppapi/c/ppb_var.h" |
| 13 #include "ppapi/tests/test_case.h" | 13 #include "ppapi/tests/test_case.h" |
| 14 | 14 |
| 15 class TestTrueTypeFont : public TestCase { | 15 class TestTrueTypeFont : public TestCase { |
| 16 public: | 16 public: |
| 17 explicit TestTrueTypeFont(TestingInstance* instance); | 17 explicit TestTrueTypeFont(TestingInstance* instance); |
| 18 virtual ~TestTrueTypeFont(); | 18 virtual ~TestTrueTypeFont(); |
| 19 | 19 |
| 20 private: | 20 private: |
| 21 // TestCase implementation. | 21 // TestCase implementation. |
| 22 virtual bool Init(); | 22 virtual bool Init(); |
| 23 virtual void RunTests(const std::string& filter); | 23 virtual void RunTests(const std::string& filter); |
| 24 | 24 |
| 25 std::string TestGetFontFamilies(); | 25 std::string TestGetFontFamilies(); |
| 26 std::string TestGetFontsInFamily(); |
| 26 std::string TestCreate(); | 27 std::string TestCreate(); |
| 27 std::string TestDescribe(); | 28 std::string TestDescribe(); |
| 28 std::string TestGetTableTags(); | 29 std::string TestGetTableTags(); |
| 29 std::string TestGetTable(); | 30 std::string TestGetTable(); |
| 30 | 31 |
| 31 const PPB_TrueTypeFont_Dev* ppb_truetype_font_interface_; | 32 const PPB_TrueTypeFont_Dev* ppb_truetype_font_interface_; |
| 32 const PPB_Core* ppb_core_interface_; | 33 const PPB_Core* ppb_core_interface_; |
| 33 const PPB_Var* ppb_var_interface_; | 34 const PPB_Var* ppb_var_interface_; |
| 34 }; | 35 }; |
| 35 | 36 |
| 36 #endif // PAPPI_TESTS_TEST_TRUETYPE_FONT_H_ | 37 #endif // PAPPI_TESTS_TEST_TRUETYPE_FONT_H_ |
| OLD | NEW |