| 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 "webkit/support/test_webkit_platform_support.h" | 5 #include "webkit/support/test_webkit_platform_support.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
| 10 #include "base/metrics/stats_counters.h" | 10 #include "base/metrics/stats_counters.h" |
| (...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 561 | 561 |
| 562 WebKit::WebString TestWebKitPlatformSupport::webKitRootDir() { | 562 WebKit::WebString TestWebKitPlatformSupport::webKitRootDir() { |
| 563 return webkit_support::GetWebKitRootDir(); | 563 return webkit_support::GetWebKitRootDir(); |
| 564 } | 564 } |
| 565 | 565 |
| 566 | 566 |
| 567 WebKit::WebLayerTreeView* | 567 WebKit::WebLayerTreeView* |
| 568 TestWebKitPlatformSupport::createLayerTreeViewForTesting() { | 568 TestWebKitPlatformSupport::createLayerTreeViewForTesting() { |
| 569 scoped_ptr<WebLayerTreeViewImplForTesting> view( | 569 scoped_ptr<WebLayerTreeViewImplForTesting> view( |
| 570 new WebLayerTreeViewImplForTesting( | 570 new WebLayerTreeViewImplForTesting( |
| 571 WebLayerTreeViewImplForTesting::FAKE_CONTEXT, NULL)); | 571 webkit_support::FAKE_CONTEXT, NULL)); |
| 572 | 572 |
| 573 if (!view->initialize(scoped_ptr<cc::Thread>())) | 573 if (!view->initialize(scoped_ptr<cc::Thread>())) |
| 574 return NULL; | 574 return NULL; |
| 575 return view.release(); | 575 return view.release(); |
| 576 } | 576 } |
| 577 | 577 |
| 578 WebKit::WebLayerTreeView* | 578 WebKit::WebLayerTreeView* |
| 579 TestWebKitPlatformSupport::createLayerTreeViewForTesting( | 579 TestWebKitPlatformSupport::createLayerTreeViewForTesting( |
| 580 TestViewType type) { | 580 TestViewType type) { |
| 581 DCHECK_EQ(TestViewTypeUnitTest, type); | 581 DCHECK_EQ(TestViewTypeUnitTest, type); |
| 582 return createLayerTreeViewForTesting(); | 582 return createLayerTreeViewForTesting(); |
| 583 } | 583 } |
| 584 | 584 |
| OLD | NEW |