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

Side by Side Diff: chrome/test/base/mojo_test_connector.h

Issue 2295433003: Changes around how browser_tests are launched for mash (Closed)
Patch Set: make manifest chromeos specific Created 4 years, 3 months 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CHROME_TEST_BASE_MOJO_TEST_CONNECTOR_H_ 5 #ifndef CHROME_TEST_BASE_MOJO_TEST_CONNECTOR_H_
6 #define CHROME_TEST_BASE_MOJO_TEST_CONNECTOR_H_ 6 #define CHROME_TEST_BASE_MOJO_TEST_CONNECTOR_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 12 matching lines...) Expand all
23 23
24 // MojoTestConnector in responsible for providing the necessary wiring for 24 // MojoTestConnector in responsible for providing the necessary wiring for
25 // test processes to get a mojo channel passed to them. To use this class 25 // test processes to get a mojo channel passed to them. To use this class
26 // call PrepareForTest() prior to launching each test. It is expected 26 // call PrepareForTest() prior to launching each test. It is expected
27 // PrepareForTest() is called from content::TestLauncherDelegate::PreRunTest(). 27 // PrepareForTest() is called from content::TestLauncherDelegate::PreRunTest().
28 class MojoTestConnector { 28 class MojoTestConnector {
29 public: 29 public:
30 // Switch added to command line of each test. 30 // Switch added to command line of each test.
31 static const char kTestSwitch[]; 31 static const char kTestSwitch[];
32 32
33 // Command line switch added to all apps that are expected to be provided by
34 // browser_tests.
35 static const char kMashApp[];
36
33 MojoTestConnector(); 37 MojoTestConnector();
34 ~MojoTestConnector(); 38 ~MojoTestConnector();
35 39
36 // Initializes the background thread the Shell runs on. 40 // Initializes the background thread the Shell runs on.
37 shell::mojom::ServiceRequest Init(); 41 shell::mojom::ServiceRequest Init();
38 42
39 std::unique_ptr<content::TestState> PrepareForTest( 43 std::unique_ptr<content::TestState> PrepareForTest(
40 base::CommandLine* command_line, 44 base::CommandLine* command_line,
41 base::TestLauncher::LaunchOptions* test_launch_options); 45 base::TestLauncher::LaunchOptions* test_launch_options);
42 46
43 private: 47 private:
48 class NativeRunnerDelegateImpl;
49
50 std::unique_ptr<NativeRunnerDelegateImpl> native_runner_delegate_;
51
44 shell::BackgroundShell background_shell_; 52 shell::BackgroundShell background_shell_;
45 53
46 DISALLOW_COPY_AND_ASSIGN(MojoTestConnector); 54 DISALLOW_COPY_AND_ASSIGN(MojoTestConnector);
47 }; 55 };
48 56
49 #endif // CHROME_TEST_BASE_MOJO_TEST_CONNECTOR_H_ 57 #endif // CHROME_TEST_BASE_MOJO_TEST_CONNECTOR_H_
OLDNEW
« no previous file with comments | « chrome/test/base/mash_browser_tests_manifest.json ('k') | chrome/test/base/mojo_test_connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698