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