blob: 60de5014136f408d7878bc8d0350839aef96f55f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_TEST_UI_UI_LAYOUT_TEST_H_
#define CHROME_TEST_UI_UI_LAYOUT_TEST_H_
#include "base/file_path.h"
#include "chrome/test/ui/ui_test.h"
class UILayoutTest : public UITest {
protected:
UILayoutTest();
virtual ~UILayoutTest();
void InitializeForLayoutTest(const FilePath& test_parent_dir,
const FilePath& test_case_dir,
int port);
void AddResourceForLayoutTest(const FilePath& parent_dir,
const FilePath& resource_dir);
void RunLayoutTest(const std::string& test_case_file_name,
int port);
bool ReadExpectedResult(const FilePath& result_dir_path,
const std::string test_case_file_name,
std::string* expected_result_value);
bool initialized_for_layout_test_;
int test_count_;
FilePath temp_test_dir_;
FilePath layout_test_dir_;
FilePath test_case_dir_;
FilePath new_http_root_dir_;
FilePath new_layout_test_dir_;
FilePath rebase_result_dir_;
FilePath rebase_result_chromium_dir_;
FilePath rebase_result_win_dir_;
std::string layout_test_controller_;
static const int kNoHttpPort = -1;
static const int kHttpPort = 8080;
static const int kWebSocketPort = 8880;
};
#endif // CHROME_TEST_UI_UI_LAYOUT_TEST_H_
|