OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 | 45 |
46 void EnterRunLoop(); | 46 void EnterRunLoop(); |
47 void ExitRunLoop(); | 47 void ExitRunLoop(); |
48 | 48 |
49 void YieldCurrentThread(); | 49 void YieldCurrentThread(); |
50 | 50 |
51 // Returns Blink top directory as an absolute path, e.g. | 51 // Returns Blink top directory as an absolute path, e.g. |
52 // /src/third_party/WebKit. | 52 // /src/third_party/WebKit. |
53 String BlinkRootDir(); | 53 String BlinkRootDir(); |
54 | 54 |
55 // Returns directory containing the current executable as absolute path. | |
56 String ExecutableDir(); | |
57 | |
58 // Returns test data absolute path for webkit_unit_tests, i.e. | 55 // Returns test data absolute path for webkit_unit_tests, i.e. |
59 // <blinkRootDir>/Source/web/tests/data/<relativePath>. | 56 // <blinkRootDir>/Source/web/tests/data/<relativePath>. |
60 // It returns the top web test directory if |relativePath| was not specified. | 57 // It returns the top web test directory if |relativePath| was not specified. |
61 String WebTestDataPath(const String& relative_path = String()); | 58 String WebTestDataPath(const String& relative_path = String()); |
62 | 59 |
63 // Returns test data absolute path for blink_platform_unittests, i.e. | 60 // Returns test data absolute path for blink_platform_unittests, i.e. |
64 // <blinkRootDir>/Source/platform/testing/data/<relativePath>. | 61 // <blinkRootDir>/Source/platform/testing/data/<relativePath>. |
65 // It returns the top platform test directory if |relativePath| was not | 62 // It returns the top platform test directory if |relativePath| was not |
66 // specified. | 63 // specified. |
67 String PlatformTestDataPath(const String& relative_path = String()); | 64 String PlatformTestDataPath(const String& relative_path = String()); |
68 | 65 |
69 PassRefPtr<SharedBuffer> ReadFromFile(const String& path); | 66 PassRefPtr<SharedBuffer> ReadFromFile(const String& path); |
70 | 67 |
71 } // namespace testing | 68 } // namespace testing |
72 } // namespace blink | 69 } // namespace blink |
73 | 70 |
74 #endif | 71 #endif |
OLD | NEW |