| 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/public/test/content_test_suite_base.h" | 5 #include "content/public/test/content_test_suite_base.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/metrics/statistics_recorder.h" | 10 #include "base/metrics/statistics_recorder.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 #include "ui/ozone/public/ozone_platform.h" | 46 #include "ui/ozone/public/ozone_platform.h" |
| 47 #endif | 47 #endif |
| 48 | 48 |
| 49 | 49 |
| 50 namespace content { | 50 namespace content { |
| 51 | 51 |
| 52 class ContentTestSuiteBaseListener : public testing::EmptyTestEventListener { | 52 class ContentTestSuiteBaseListener : public testing::EmptyTestEventListener { |
| 53 public: | 53 public: |
| 54 ContentTestSuiteBaseListener() { | 54 ContentTestSuiteBaseListener() { |
| 55 } | 55 } |
| 56 virtual void OnTestEnd(const testing::TestInfo& test_info) override { | 56 void OnTestEnd(const testing::TestInfo& test_info) override { |
| 57 BrowserThreadImpl::FlushThreadPoolHelperForTesting(); | 57 BrowserThreadImpl::FlushThreadPoolHelperForTesting(); |
| 58 } | 58 } |
| 59 private: | 59 private: |
| 60 DISALLOW_COPY_AND_ASSIGN(ContentTestSuiteBaseListener); | 60 DISALLOW_COPY_AND_ASSIGN(ContentTestSuiteBaseListener); |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 ContentTestSuiteBase::ContentTestSuiteBase(int argc, char** argv) | 63 ContentTestSuiteBase::ContentTestSuiteBase(int argc, char** argv) |
| 64 : base::TestSuite(argc, argv) { | 64 : base::TestSuite(argc, argv) { |
| 65 } | 65 } |
| 66 | 66 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 #if !defined(OS_IOS) | 111 #if !defined(OS_IOS) |
| 112 UtilityProcessHostImpl::RegisterUtilityMainThreadFactory( | 112 UtilityProcessHostImpl::RegisterUtilityMainThreadFactory( |
| 113 CreateInProcessUtilityThread); | 113 CreateInProcessUtilityThread); |
| 114 RenderProcessHostImpl::RegisterRendererMainThreadFactory( | 114 RenderProcessHostImpl::RegisterRendererMainThreadFactory( |
| 115 CreateInProcessRendererThread); | 115 CreateInProcessRendererThread); |
| 116 GpuProcessHost::RegisterGpuMainThreadFactory(CreateInProcessGpuThread); | 116 GpuProcessHost::RegisterGpuMainThreadFactory(CreateInProcessGpuThread); |
| 117 #endif | 117 #endif |
| 118 } | 118 } |
| 119 | 119 |
| 120 } // namespace content | 120 } // namespace content |
| OLD | NEW |