Linux: Depend on liberation-fonts package for RPMs.
[chromium-blink-merge.git] / components / test_runner / test_info_extractor.h
bloba34a37d26a7421027761a574b9f866cb013b85be
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_
8 #include <string>
10 #include "base/command_line.h"
11 #include "base/files/file_path.h"
12 #include "components/test_runner/test_runner_export.h"
13 #include "url/gurl.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);
22 ~TestInfo();
24 GURL url;
25 bool enable_pixel_dumping;
26 std::string expected_pixel_hash;
27 base::FilePath current_working_directory;
30 class TEST_RUNNER_EXPORT TestInfoExtractor {
31 public:
32 explicit TestInfoExtractor(const base::CommandLine::StringVector& cmd_args);
33 ~TestInfoExtractor();
35 scoped_ptr<TestInfo> GetNextTest();
37 private:
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_