OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_TEST_TEST_CONTENT_CLIENT_INITIALIZER_ |
| 6 #define CONTENT_TEST_TEST_CONTENT_CLIENT_INITIALIZER_ |
| 7 #pragma once |
| 8 |
| 9 #include "base/basictypes.h" |
| 10 #include "base/memory/scoped_ptr.h" |
| 11 |
| 12 class NotificationServiceImpl; |
| 13 |
| 14 namespace content { |
| 15 |
| 16 class ContentClient; |
| 17 class ContentBrowserClient; |
| 18 |
| 19 // Initializes various objects needed to run unit tests that use content:: |
| 20 // objects. Currently this includes setting up the notification service, |
| 21 // creating and setting the content client and the content browser client. |
| 22 class TestContentClientInitializer { |
| 23 public: |
| 24 TestContentClientInitializer(); |
| 25 ~TestContentClientInitializer(); |
| 26 |
| 27 private: |
| 28 scoped_ptr<NotificationServiceImpl> notification_service_; |
| 29 scoped_ptr<content::ContentClient> content_client_; |
| 30 scoped_ptr<content::ContentBrowserClient> content_browser_client_; |
| 31 |
| 32 DISALLOW_COPY_AND_ASSIGN(TestContentClientInitializer); |
| 33 }; |
| 34 |
| 35 } // namespace content |
| 36 |
| 37 #endif // CONTENT_TEST_TEST_CONTENT_CLIENT_INITIALIZER_ |
OLD | NEW |