Last change
on this file since 904 was
105,
checked in by sherbold, 13 years ago
|
+ added test verdict pass/fail, including error message and the number of the message in the session at which the verdict was set
+ added result file; location is a parameter when calling the application
+ added test arbiter: if the target of a message cannot be determined correctly, the session fails
|
File size:
654 bytes
|
Rev | Line | |
---|
[32] | 1 | #pragma once
|
---|
| 2 |
|
---|
| 3 | #include "WindowData.h"
|
---|
| 4 | #include <map>
|
---|
| 5 | #include <vector>
|
---|
| 6 |
|
---|
| 7 | BOOL CALLBACK EnumChildren(HWND hwnd, LPARAM lParam);
|
---|
| 8 |
|
---|
| 9 | class WindowFinder
|
---|
| 10 | {
|
---|
| 11 | private:
|
---|
| 12 | WindowData * currentWindow;
|
---|
| 13 |
|
---|
| 14 | std::vector<std::pair<HWND,int>> * scores;
|
---|
| 15 |
|
---|
| 16 | std::vector<HWND> * parentHandles;
|
---|
| 17 |
|
---|
| 18 | int maxScore;
|
---|
| 19 |
|
---|
| 20 | bool evalPopup;
|
---|
| 21 |
|
---|
[105] | 22 | bool success;
|
---|
| 23 |
|
---|
| 24 | std::wstring errorMessage;
|
---|
| 25 |
|
---|
[32] | 26 | public:
|
---|
| 27 | WindowFinder(void);
|
---|
| 28 | ~WindowFinder(void);
|
---|
| 29 |
|
---|
| 30 | HWND find(WindowData * winData);
|
---|
| 31 |
|
---|
| 32 | void setEqualityScore(HWND hwnd, int resourceId, wchar_t * windowName, wchar_t * className);
|
---|
| 33 |
|
---|
| 34 | bool isCurrentPopup();
|
---|
| 35 |
|
---|
[105] | 36 | bool successfull();
|
---|
| 37 |
|
---|
| 38 | std::wstring getErrorMessage();
|
---|
| 39 |
|
---|
[32] | 40 | };
|
---|
Note: See
TracBrowser
for help on using the repository browser.