This source file includes following definitions.
- CheckLayoutSystemDeps
- WebKitTestPlatformInitialize
#include "content/shell/app/webkit_test_platform_support.h"
#include "third_party/skia/include/ports/SkTypeface_android.h"
namespace {
#define DEVICE_SOURCE_ROOT_DIR "/data/local/tmp/content_shell/"
const char kPrimaryFontConfig[] =
DEVICE_SOURCE_ROOT_DIR "android_main_fonts.xml";
const char kFallbackFontConfig[] =
DEVICE_SOURCE_ROOT_DIR "android_fallback_fonts.xml";
const char kFontDirectory[] = DEVICE_SOURCE_ROOT_DIR "fonts/";
}
namespace content {
bool CheckLayoutSystemDeps() {
return true;
}
bool WebKitTestPlatformInitialize() {
SkUseTestFontConfigFile(
kPrimaryFontConfig, kFallbackFontConfig, kFontDirectory);
return true;
}
}