Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Side by Side Diff: gin/test/file_runner.h

Issue 1541743002: Switch to standard integer types in gin/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gin/shell_runner.h ('k') | gin/test/v8_test.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "base/macros.h"
10 #include "gin/modules/module_runner_delegate.h" 11 #include "gin/modules/module_runner_delegate.h"
11 #include "gin/runner.h" 12 #include "gin/runner.h"
12 13
13 namespace gin { 14 namespace gin {
14 15
15 // FileRunnerDelegate is a simple RunnerDelegate that's useful for running 16 // FileRunnerDelegate is a simple RunnerDelegate that's useful for running
16 // tests. The FileRunnerDelegate provides built-in modules for "console" and 17 // tests. The FileRunnerDelegate provides built-in modules for "console" and
17 // "gtest" that are useful when writing unit tests. 18 // "gtest" that are useful when writing unit tests.
18 // 19 //
19 // TODO(abarth): Rename FileRunnerDelegate to TestRunnerDelegate. 20 // TODO(abarth): Rename FileRunnerDelegate to TestRunnerDelegate.
20 class FileRunnerDelegate : public ModuleRunnerDelegate { 21 class FileRunnerDelegate : public ModuleRunnerDelegate {
21 public: 22 public:
22 FileRunnerDelegate(); 23 FileRunnerDelegate();
23 ~FileRunnerDelegate() override; 24 ~FileRunnerDelegate() override;
24 25
25 private: 26 private:
26 // From ModuleRunnerDelegate: 27 // From ModuleRunnerDelegate:
27 void UnhandledException(ShellRunner* runner, TryCatch& try_catch) override; 28 void UnhandledException(ShellRunner* runner, TryCatch& try_catch) override;
28 29
29 DISALLOW_COPY_AND_ASSIGN(FileRunnerDelegate); 30 DISALLOW_COPY_AND_ASSIGN(FileRunnerDelegate);
30 }; 31 };
31 32
32 void RunTestFromFile(const base::FilePath& path, FileRunnerDelegate* delegate, 33 void RunTestFromFile(const base::FilePath& path, FileRunnerDelegate* delegate,
33 bool run_until_idle = true); 34 bool run_until_idle = true);
34 35
35 } // namespace gin 36 } // namespace gin
36 37
37 #endif // GIN_TEST_FILE_RUNNER_H_ 38 #endif // GIN_TEST_FILE_RUNNER_H_
OLDNEW
« no previous file with comments | « gin/shell_runner.h ('k') | gin/test/v8_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698