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

Side by Side Diff: trunk/src/mojo/shell/shell_test_helper.h

Issue 299263002: Revert 272472 "Mojo: nuke EnvironmentData" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « trunk/src/mojo/shell/desktop/mojo_main.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 MOJO_SHELL_SHELL_TEST_HELPER_ 5 #ifndef MOJO_SHELL_SHELL_TEST_HELPER_
6 #define MOJO_SHELL_SHELL_TEST_HELPER_ 6 #define MOJO_SHELL_SHELL_TEST_HELPER_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
11 #include "base/threading/thread.h" 11 #include "base/threading/thread.h"
12 #include "mojo/public/cpp/environment/environment.h"
12 #include "mojo/public/interfaces/shell/shell.mojom.h" 13 #include "mojo/public/interfaces/shell/shell.mojom.h"
13 14
14 namespace base { 15 namespace base {
15 class MessageLoopProxy; 16 class MessageLoopProxy;
16 class RunLoop; 17 class RunLoop;
17 } 18 }
18 19
19 namespace mojo { 20 namespace mojo {
20 namespace shell { 21 namespace shell {
21 22
(...skipping 11 matching lines...) Expand all
33 34
34 // Returns a handle to the Shell. ShellTestHelper owns the shell. 35 // Returns a handle to the Shell. ShellTestHelper owns the shell.
35 Shell* shell() { return shell_.get(); } 36 Shell* shell() { return shell_.get(); }
36 37
37 private: 38 private:
38 class TestShellClient; 39 class TestShellClient;
39 40
40 // Invoked once connection has been established. 41 // Invoked once connection has been established.
41 void OnShellStarted(); 42 void OnShellStarted();
42 43
44 Environment environment_;
45
43 base::Thread shell_thread_; 46 base::Thread shell_thread_;
44 47
45 // If non-null we're in Init() and waiting for connection. 48 // If non-null we're in Init() and waiting for connection.
46 scoped_ptr<base::RunLoop> run_loop_; 49 scoped_ptr<base::RunLoop> run_loop_;
47 50
48 // See comment in declaration for details. 51 // See comment in declaration for details.
49 State* state_; 52 State* state_;
50 53
51 // Client interface for the shell. 54 // Client interface for the shell.
52 scoped_ptr<TestShellClient> shell_client_; 55 scoped_ptr<TestShellClient> shell_client_;
53 56
54 ShellPtr shell_; 57 ShellPtr shell_;
55 58
56 DISALLOW_COPY_AND_ASSIGN(ShellTestHelper); 59 DISALLOW_COPY_AND_ASSIGN(ShellTestHelper);
57 }; 60 };
58 61
59 } // namespace shell 62 } // namespace shell
60 } // namespace mojo 63 } // namespace mojo
61 64
62 #endif // MOJO_SHELL_SHELL_TEST_HELPER_ 65 #endif // MOJO_SHELL_SHELL_TEST_HELPER_
OLDNEW
« no previous file with comments | « trunk/src/mojo/shell/desktop/mojo_main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698