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 // Tests PPB_TrueTypeFont interface. | 5 // Tests PPB_TrueTypeFont interface. |
6 | 6 |
7 #include "ppapi/tests/test_truetype_font.h" | 7 #include "ppapi/tests/test_truetype_font.h" |
8 | 8 |
| 9 #include <stddef.h> |
| 10 #include <stdint.h> |
9 #include <string.h> | 11 #include <string.h> |
10 #include <algorithm> | 12 #include <algorithm> |
11 #include <limits> | 13 #include <limits> |
12 | 14 |
13 #include "ppapi/c/private/ppb_testing_private.h" | 15 #include "ppapi/c/private/ppb_testing_private.h" |
14 #include "ppapi/cpp/completion_callback.h" | 16 #include "ppapi/cpp/completion_callback.h" |
15 #include "ppapi/cpp/dev/truetype_font_dev.h" | 17 #include "ppapi/cpp/dev/truetype_font_dev.h" |
16 #include "ppapi/cpp/instance.h" | 18 #include "ppapi/cpp/instance.h" |
17 #include "ppapi/cpp/var.h" | 19 #include "ppapi/cpp/var.h" |
18 #include "ppapi/tests/test_utils.h" | 20 #include "ppapi/tests/test_utils.h" |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 instance_->pp_instance(), false); | 427 instance_->pp_instance(), false); |
426 cc.WaitForResult(font.GetTable(MAKE_TABLE_TAG('c', 'm', 'a', 'p'), | 428 cc.WaitForResult(font.GetTable(MAKE_TABLE_TAG('c', 'm', 'a', 'p'), |
427 0, -100, | 429 0, -100, |
428 cc.GetCallback())); | 430 cc.GetCallback())); |
429 ASSERT_EQ(PP_ERROR_BADARGUMENT, cc.result()); | 431 ASSERT_EQ(PP_ERROR_BADARGUMENT, cc.result()); |
430 ASSERT_EQ(0, cc.output().size()); | 432 ASSERT_EQ(0, cc.output().size()); |
431 } | 433 } |
432 | 434 |
433 PASS(); | 435 PASS(); |
434 } | 436 } |
OLD | NEW |