| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 #include "content/test/content_test_suite.h" | 5 #include "content/test/content_test_suite.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "content/browser/mock_content_browser_client.h" | 9 #include "content/browser/mock_content_browser_client.h" |
| 10 #include "content/browser/notification_service_impl.h" | 10 #include "content/browser/notification_service_impl.h" |
| 11 #include "content/public/common/content_client.h" | 11 #include "content/public/common/content_client.h" |
| 12 #include "content/public/common/content_paths.h" | 12 #include "content/public/common/content_paths.h" |
| 13 #include "content/public/common/url_constants.h" | 13 #include "content/public/common/url_constants.h" |
| 14 #include "content/test/test_content_client.h" | 14 #include "content/test/test_content_client.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 16 #include "ui/base/ui_base_paths.h" | 16 #include "ui/base/ui_base_paths.h" |
| 17 | 17 |
| 18 #if defined(OS_MACOSX) | 18 #if defined(OS_MACOSX) |
| 19 #include "base/mac/scoped_nsautorelease_pool.h" | 19 #include "base/mac/scoped_nsautorelease_pool.h" |
| 20 #endif | 20 #endif |
| 21 #include "ui/gfx/compositor/compositor_setup.h" | 21 #include "ui/compositor/compositor_setup.h" |
| 22 | 22 |
| 23 namespace { | 23 namespace { |
| 24 | 24 |
| 25 class TestContentClientInitializer : public testing::EmptyTestEventListener { | 25 class TestContentClientInitializer : public testing::EmptyTestEventListener { |
| 26 public: | 26 public: |
| 27 TestContentClientInitializer() { | 27 TestContentClientInitializer() { |
| 28 } | 28 } |
| 29 | 29 |
| 30 virtual void OnTestStart(const testing::TestInfo& test_info) OVERRIDE { | 30 virtual void OnTestStart(const testing::TestInfo& test_info) OVERRIDE { |
| 31 notification_service_.reset(new NotificationServiceImpl()); | 31 notification_service_.reset(new NotificationServiceImpl()); |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 ui::RegisterPathProvider(); | 81 ui::RegisterPathProvider(); |
| 82 | 82 |
| 83 // Mock out the compositor on platforms that use it. | 83 // Mock out the compositor on platforms that use it. |
| 84 ui::SetupTestCompositor(); | 84 ui::SetupTestCompositor(); |
| 85 | 85 |
| 86 testing::TestEventListeners& listeners = | 86 testing::TestEventListeners& listeners = |
| 87 testing::UnitTest::GetInstance()->listeners(); | 87 testing::UnitTest::GetInstance()->listeners(); |
| 88 listeners.Append(new TestContentClientInitializer); | 88 listeners.Append(new TestContentClientInitializer); |
| 89 } | 89 } |
| 90 | 90 |
| OLD | NEW |