| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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/layout_test/layout_test_content_renderer_client
.h" | 5 #include "content/shell/renderer/layout_test/layout_test_content_renderer_client
.h" |
| 6 | 6 |
| 7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/debug/debugger.h" | 9 #include "base/debug/debugger.h" |
| 10 #include "components/test_runner/mock_credential_manager_client.h" | 10 #include "components/test_runner/mock_credential_manager_client.h" |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 new TestMediaStreamRendererFactory()); | 224 new TestMediaStreamRendererFactory()); |
| 225 #else | 225 #else |
| 226 return nullptr; | 226 return nullptr; |
| 227 #endif | 227 #endif |
| 228 } | 228 } |
| 229 | 229 |
| 230 std::unique_ptr<gfx::ICCProfile> | 230 std::unique_ptr<gfx::ICCProfile> |
| 231 LayoutTestContentRendererClient::GetImageDecodeColorProfile() { | 231 LayoutTestContentRendererClient::GetImageDecodeColorProfile() { |
| 232 // TODO(ccameron): Make all platforms use the same color profile for layout | 232 // TODO(ccameron): Make all platforms use the same color profile for layout |
| 233 // tests. | 233 // tests. |
| 234 #if defined(OS_WIN) | 234 #if defined(OS_WIN) || defined(OS_MACOSX) |
| 235 return base::WrapUnique(new gfx::ICCProfile( | 235 return base::WrapUnique(new gfx::ICCProfile( |
| 236 GetTestingICCProfile("sRGB"))); | 236 GetTestingICCProfile("sRGB"))); |
| 237 #elif defined(OS_MACOSX) | |
| 238 return base::WrapUnique(new gfx::ICCProfile( | |
| 239 GetTestingICCProfile("genericRGB"))); | |
| 240 #else | 237 #else |
| 241 return base::WrapUnique(new gfx::ICCProfile()); | 238 return base::WrapUnique(new gfx::ICCProfile()); |
| 242 #endif | 239 #endif |
| 243 } | 240 } |
| 244 | 241 |
| 245 void LayoutTestContentRendererClient::DidInitializeWorkerContextOnWorkerThread( | 242 void LayoutTestContentRendererClient::DidInitializeWorkerContextOnWorkerThread( |
| 246 v8::Local<v8::Context> context) { | 243 v8::Local<v8::Context> context) { |
| 247 blink::WebTestingSupport::injectInternalsObject(context); | 244 blink::WebTestingSupport::injectInternalsObject(context); |
| 248 } | 245 } |
| 249 | 246 |
| 250 } // namespace content | 247 } // namespace content |
| OLD | NEW |