Respond with QuotaExceededError when IndexedDB has no disk space on open.
[chromium-blink-merge.git] / content / shell / app / webkit_test_platform_support_android.cc
blobe4c8d3c2923a9813daf36dda718db1c8534dbde4
1 // Copyright 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.
5 #include "content/shell/app/webkit_test_platform_support.h"
7 #include "third_party/skia/include/ports/SkTypeface_android.h"
9 namespace {
11 // The root directory on the device to which resources will be pushed. This
12 // value needs to be equal to that set in chromium_android.py.
13 #define DEVICE_SOURCE_ROOT_DIR "/data/local/tmp/content_shell/"
15 // Primary font configuration file on the device for Skia.
16 const char kPrimaryFontConfig[] =
17 DEVICE_SOURCE_ROOT_DIR "android_main_fonts.xml";
19 // The file on the device containing the fallback font configuration for Skia.
20 const char kFallbackFontConfig[] =
21 DEVICE_SOURCE_ROOT_DIR "android_fallback_fonts.xml";
23 // The directory in which fonts will be stored on the Android device.
24 const char kFontDirectory[] = DEVICE_SOURCE_ROOT_DIR "fonts/";
26 } // namespace
28 namespace content {
30 bool CheckLayoutSystemDeps() {
31 return true;
34 bool WebKitTestPlatformInitialize() {
35 // Initialize Skia with the font configuration files crafted for layout tests.
36 SkUseTestFontConfigFile(
37 kPrimaryFontConfig, kFallbackFontConfig, kFontDirectory);
39 return true;
42 } // namespace content