1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_TEST_RUNNER_TEST_INFO_EXTRACTOR_H_
6 #define COMPONENTS_TEST_RUNNER_TEST_INFO_EXTRACTOR_H_
10 #include "base/command_line.h"
11 #include "base/files/file_path.h"
12 #include "components/test_runner/test_runner_export.h"
15 namespace test_runner
{
17 struct TEST_RUNNER_EXPORT TestInfo
{
18 TestInfo(const GURL
& url
,
19 bool enable_pixel_dumping
,
20 const std::string
& expected_pixel_hash
,
21 const base::FilePath
& current_working_directory
);
25 bool enable_pixel_dumping
;
26 std::string expected_pixel_hash
;
27 base::FilePath current_working_directory
;
30 class TEST_RUNNER_EXPORT TestInfoExtractor
{
32 explicit TestInfoExtractor(const base::CommandLine::StringVector
& cmd_args
);
35 scoped_ptr
<TestInfo
> GetNextTest();
38 base::CommandLine::StringVector cmdline_args_
;
39 size_t cmdline_position_
;
41 DISALLOW_COPY_AND_ASSIGN(TestInfoExtractor
);
44 } // namespace test_runner
46 #endif // COMPONENTS_TEST_RUNNER_TEST_INFO_EXTRACTOR_H_