| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef GIN_TEST_FILE_RUNNER_H_ | 5 #ifndef GIN_TEST_FILE_RUNNER_H_ |
| 6 #define GIN_TEST_FILE_RUNNER_H_ | 6 #define GIN_TEST_FILE_RUNNER_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "gin/modules/module_runner_delegate.h" | 10 #include "gin/modules/module_runner_delegate.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 FileRunnerDelegate(); | 22 FileRunnerDelegate(); |
| 23 virtual ~FileRunnerDelegate(); | 23 virtual ~FileRunnerDelegate(); |
| 24 | 24 |
| 25 private: | 25 private: |
| 26 // From ModuleRunnerDelegate: | 26 // From ModuleRunnerDelegate: |
| 27 virtual void UnhandledException(Runner* runner, TryCatch& try_catch) OVERRIDE; | 27 virtual void UnhandledException(Runner* runner, TryCatch& try_catch) OVERRIDE; |
| 28 | 28 |
| 29 DISALLOW_COPY_AND_ASSIGN(FileRunnerDelegate); | 29 DISALLOW_COPY_AND_ASSIGN(FileRunnerDelegate); |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 void RunTestFromFile(const base::FilePath& path, FileRunnerDelegate* delegate); | 32 void RunTestFromFile(const base::FilePath& path, FileRunnerDelegate* delegate, |
| 33 bool run_until_idle = true); |
| 33 | 34 |
| 34 } // namespace gin | 35 } // namespace gin |
| 35 | 36 |
| 36 #endif // GIN_TEST_FILE_RUNNER_H_ | 37 #endif // GIN_TEST_FILE_RUNNER_H_ |
| OLD | NEW |