| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CONTENT_PUBLIC_TEST_TEST_WEB_CONTENTS_FACTORY_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_TEST_WEB_CONTENTS_FACTORY_H_ |
| 6 #define CONTENT_PUBLIC_TEST_TEST_WEB_CONTENTS_FACTORY_H_ | 6 #define CONTENT_PUBLIC_TEST_TEST_WEB_CONTENTS_FACTORY_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
| 10 | 11 |
| 11 namespace content { | 12 namespace content { |
| 12 class BrowserContext; | 13 class BrowserContext; |
| 13 class RenderViewHostTestEnabler; | 14 class RenderViewHostTestEnabler; |
| 14 class WebContents; | 15 class WebContents; |
| 15 | 16 |
| 16 // A helper class to create test web contents (tabs) for unit tests, without | 17 // A helper class to create test web contents (tabs) for unit tests, without |
| 17 // inheriting from RenderViewTestHarness. Can create web contents, and will | 18 // inheriting from RenderViewTestHarness. Can create web contents, and will |
| 18 // clean up after itself upon destruction. Owns all created web contents. | 19 // clean up after itself upon destruction. Owns all created web contents. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 40 | 41 |
| 41 // The vector of web contents that this class created. | 42 // The vector of web contents that this class created. |
| 42 ScopedVector<WebContents> web_contents_; | 43 ScopedVector<WebContents> web_contents_; |
| 43 | 44 |
| 44 DISALLOW_COPY_AND_ASSIGN(TestWebContentsFactory); | 45 DISALLOW_COPY_AND_ASSIGN(TestWebContentsFactory); |
| 45 }; | 46 }; |
| 46 | 47 |
| 47 } // namespace content | 48 } // namespace content |
| 48 | 49 |
| 49 #endif // CONTENT_PUBLIC_TEST_TEST_WEB_CONTENTS_FACTORY_H_ | 50 #endif // CONTENT_PUBLIC_TEST_TEST_WEB_CONTENTS_FACTORY_H_ |
| OLD | NEW |