OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/shell/renderer/test_runner/TestInterfaces.h" | 5 #include "content/shell/renderer/test_runner/TestInterfaces.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 | 188 |
189 WebThemeEngine* TestInterfaces::themeEngine() | 189 WebThemeEngine* TestInterfaces::themeEngine() |
190 { | 190 { |
191 if (!m_testRunner->UseMockTheme()) | 191 if (!m_testRunner->UseMockTheme()) |
192 return 0; | 192 return 0; |
193 #if defined(__APPLE__) | 193 #if defined(__APPLE__) |
194 if (!m_themeEngine.get()) | 194 if (!m_themeEngine.get()) |
195 m_themeEngine.reset(new WebTestThemeEngineMac()); | 195 m_themeEngine.reset(new WebTestThemeEngineMac()); |
196 #else | 196 #else |
197 if (!m_themeEngine.get()) | 197 if (!m_themeEngine.get()) |
198 m_themeEngine.reset(new WebTestThemeEngineMock()); | 198 m_themeEngine.reset(new MockWebThemeEngine()); |
199 #endif | 199 #endif |
200 return m_themeEngine.get(); | 200 return m_themeEngine.get(); |
201 } | 201 } |
202 | 202 |
203 } // namespace content | 203 } // namespace content |
OLD | NEW |