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

Side by Side Diff: mojo/shell/public/cpp/application_test_base.h

Issue 1728063002: Revert of mojo: Delay ApplicationTestBase shell disconnection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « no previous file | mojo/shell/public/cpp/lib/application_test_base.cc » ('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 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_PUBLIC_CPP_APPLICATION_TEST_BASE_H_ 5 #ifndef MOJO_SHELL_PUBLIC_CPP_APPLICATION_TEST_BASE_H_
6 #define MOJO_SHELL_PUBLIC_CPP_APPLICATION_TEST_BASE_H_ 6 #define MOJO_SHELL_PUBLIC_CPP_APPLICATION_TEST_BASE_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "mojo/public/cpp/bindings/array.h" 9 #include "mojo/public/cpp/bindings/array.h"
10 #include "mojo/public/cpp/bindings/string.h" 10 #include "mojo/public/cpp/bindings/string.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 void SetUp() override; 68 void SetUp() override;
69 void TearDown() override; 69 void TearDown() override;
70 70
71 // True by default, which indicates a MessageLoop will automatically be 71 // True by default, which indicates a MessageLoop will automatically be
72 // created for the application. Tests may override this function to prevent 72 // created for the application. Tests may override this function to prevent
73 // a default loop from being created. 73 // a default loop from being created.
74 virtual bool ShouldCreateDefaultRunLoop(); 74 virtual bool ShouldCreateDefaultRunLoop();
75 75
76 private: 76 private:
77 scoped_ptr<TestHelper> test_helper_; 77 scoped_ptr<TestHelper> test_helper_;
78 bool use_default_run_loop_ = false;
79 78
80 MOJO_DISALLOW_COPY_AND_ASSIGN(ApplicationTestBase); 79 MOJO_DISALLOW_COPY_AND_ASSIGN(ApplicationTestBase);
81 }; 80 };
82 81
83 } // namespace test 82 } // namespace test
84 83
85 } // namespace mojo 84 } // namespace mojo
86 85
87 #endif // MOJO_SHELL_PUBLIC_CPP_APPLICATION_TEST_BASE_H_ 86 #endif // MOJO_SHELL_PUBLIC_CPP_APPLICATION_TEST_BASE_H_
OLDNEW
« no previous file with comments | « no previous file | mojo/shell/public/cpp/lib/application_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698