| OLD | NEW |
| 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 Loading... |
| 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; |
| 78 | 79 |
| 79 MOJO_DISALLOW_COPY_AND_ASSIGN(ApplicationTestBase); | 80 MOJO_DISALLOW_COPY_AND_ASSIGN(ApplicationTestBase); |
| 80 }; | 81 }; |
| 81 | 82 |
| 82 } // namespace test | 83 } // namespace test |
| 83 | 84 |
| 84 } // namespace mojo | 85 } // namespace mojo |
| 85 | 86 |
| 86 #endif // MOJO_SHELL_PUBLIC_CPP_APPLICATION_TEST_BASE_H_ | 87 #endif // MOJO_SHELL_PUBLIC_CPP_APPLICATION_TEST_BASE_H_ |
| OLD | NEW |