OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #ifndef COMPONENTS_TEST_RUNNER_TEST_INFO_EXTRACTOR_H_ |
| 6 #define COMPONENTS_TEST_RUNNER_TEST_INFO_EXTRACTOR_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 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" |
| 14 |
| 15 namespace test_runner { |
| 16 |
| 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(); |
| 23 |
| 24 GURL url; |
| 25 bool enable_pixel_dumping; |
| 26 std::string expected_pixel_hash; |
| 27 base::FilePath current_working_directory; |
| 28 }; |
| 29 |
| 30 class TEST_RUNNER_EXPORT TestInfoExtractor { |
| 31 public: |
| 32 explicit TestInfoExtractor(const base::CommandLine::StringVector& cmd_args); |
| 33 ~TestInfoExtractor(); |
| 34 |
| 35 scoped_ptr<TestInfo> GetNextTest(); |
| 36 |
| 37 private: |
| 38 base::CommandLine::StringVector cmdline_args_; |
| 39 size_t cmdline_position_; |
| 40 |
| 41 DISALLOW_COPY_AND_ASSIGN(TestInfoExtractor); |
| 42 }; |
| 43 |
| 44 } // namespace test_runner |
| 45 |
| 46 #endif // COMPONENTS_TEST_RUNNER_TEST_INFO_EXTRACTOR_H_ |
OLD | NEW |