| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007 Apple 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 16 matching lines...) Expand all Loading... |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 #ifndef DumpRenderTree_h | 29 #ifndef DumpRenderTree_h |
| 30 #define DumpRenderTree_h | 30 #define DumpRenderTree_h |
| 31 | 31 |
| 32 // FIXME: Remove this when all platforms are using config.h | 32 // FIXME: Remove this when all platforms are using config.h |
| 33 #ifndef Config_H | 33 #ifndef Config_H |
| 34 #include <wtf/Platform.h> | 34 #include <wtf/Platform.h> |
| 35 #endif | 35 #endif |
| 36 | 36 |
| 37 #if PLATFORM(MAC) | |
| 38 #include "DumpRenderTreeMac.h" | |
| 39 #elif PLATFORM(WIN) | |
| 40 #include "DumpRenderTreeWin.h" | |
| 41 #elif PLATFORM(GTK) | |
| 42 #include "DumpRenderTreeGtk.h" | |
| 43 #elif PLATFORM(WX) | |
| 44 #include "DumpRenderTreeWx.h" | |
| 45 #elif PLATFORM(EFL) | |
| 46 #include "DumpRenderTreeEfl.h" | |
| 47 #elif PLATFORM(BLACKBERRY) | |
| 48 #include "DumpRenderTreeBlackBerry.h" | |
| 49 #endif | |
| 50 | |
| 51 #include <string> | 37 #include <string> |
| 52 #include <wtf/RefPtr.h> | 38 #include <wtf/RefPtr.h> |
| 53 | 39 |
| 54 #if !OS(OPENBSD) | 40 #if !OS(OPENBSD) |
| 55 std::wstring urlSuitableForTestResult(const std::wstring& url); | 41 std::wstring urlSuitableForTestResult(const std::wstring& url); |
| 56 #endif | 42 #endif |
| 57 | 43 |
| 58 class TestRunner; | 44 class TestRunner; |
| 59 | 45 |
| 60 extern volatile bool done; | 46 extern volatile bool done; |
| 61 | 47 |
| 62 // FIXME: This is a bad abstraction. We should insted pass this to other contro
ller objects which need access to it. | 48 // FIXME: This is a bad abstraction. We should insted pass this to other contro
ller objects which need access to it. |
| 63 extern RefPtr<TestRunner> gTestRunner; | 49 extern RefPtr<TestRunner> gTestRunner; |
| 64 | 50 |
| 65 void dump(); | 51 void dump(); |
| 66 void displayWebView(); | 52 void displayWebView(); |
| 67 | 53 |
| 68 struct TestCommand { | 54 struct TestCommand { |
| 69 TestCommand() : shouldDumpPixels(false), timeout(30000) { } | 55 TestCommand() : shouldDumpPixels(false), timeout(30000) { } |
| 70 | 56 |
| 71 std::string pathOrURL; | 57 std::string pathOrURL; |
| 72 bool shouldDumpPixels; | 58 bool shouldDumpPixels; |
| 73 std::string expectedPixelHash; | 59 std::string expectedPixelHash; |
| 74 int timeout; // in ms | 60 int timeout; // in ms |
| 75 }; | 61 }; |
| 76 | 62 |
| 77 TestCommand parseInputLine(const std::string&); | 63 TestCommand parseInputLine(const std::string&); |
| 78 | 64 |
| 79 #endif // DumpRenderTree_h | 65 #endif // DumpRenderTree_h |
| OLD | NEW |