| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #ifndef SKY_ENGINE_TESTING_PLATFORM_PLATFORM_IMPL_H_ | 5 #ifndef SKY_ENGINE_TESTING_PLATFORM_PLATFORM_IMPL_H_ |
| 6 #define SKY_ENGINE_TESTING_PLATFORM_PLATFORM_IMPL_H_ | 6 #define SKY_ENGINE_TESTING_PLATFORM_PLATFORM_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | |
| 9 #include "base/message_loop/message_loop.h" | |
| 10 #include "base/threading/thread_local_storage.h" | |
| 11 #include "base/timer/timer.h" | |
| 12 #include "sky/engine/public/platform/Platform.h" | 8 #include "sky/engine/public/platform/Platform.h" |
| 13 #include "sky/engine/testing/platform/webunittestsupport_impl.h" | 9 #include "sky/engine/testing/platform/webunittestsupport_impl.h" |
| 14 | 10 |
| 15 namespace sky { | 11 namespace sky { |
| 16 | 12 |
| 17 class PlatformImpl : public blink::Platform { | 13 class PlatformImpl : public blink::Platform { |
| 18 public: | 14 public: |
| 19 explicit PlatformImpl(); | 15 PlatformImpl(); |
| 20 virtual ~PlatformImpl(); | 16 ~PlatformImpl() override; |
| 21 | 17 |
| 22 // blink::Platform methods: | 18 // blink::Platform methods: |
| 23 virtual blink::WebUnitTestSupport* unitTestSupport(); | 19 blink::WebString defaultLocale() override; |
| 24 virtual blink::WebString defaultLocale(); | 20 blink::WebUnitTestSupport* unitTestSupport() override; |
| 25 | 21 |
| 26 private: | 22 private: |
| 27 WebUnitTestSupportImpl unit_test_support_; | 23 WebUnitTestSupportImpl unit_test_support_; |
| 28 | 24 |
| 29 DISALLOW_COPY_AND_ASSIGN(PlatformImpl); | 25 DISALLOW_COPY_AND_ASSIGN(PlatformImpl); |
| 30 }; | 26 }; |
| 31 | 27 |
| 32 } // namespace sky | 28 } // namespace sky |
| 33 | 29 |
| 34 #endif // SKY_ENGINE_TESTING_PLATFORM_PLATFORM_IMPL_H_ | 30 #endif // SKY_ENGINE_TESTING_PLATFORM_PLATFORM_IMPL_H_ |
| OLD | NEW |