mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Now that sky/engine can talk to base directly, there's no reason to use Platform::current to implement SharedTimer. Instead, we can just implement it directly in SharedTimer.cpp. R=ojan@chromium.org, eseidel@chromium.org Review URL: https://codereview.chromium.org/886263002
34 lines
767 B
C++
34 lines
767 B
C++
// Copyright 2014 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#include "sky/engine/testing/platform/platform_impl.h"
|
|
|
|
#include <cmath>
|
|
|
|
#include "base/rand_util.h"
|
|
#include "base/stl_util.h"
|
|
#include "base/synchronization/waitable_event.h"
|
|
#include "base/time/time.h"
|
|
#include "net/base/data_url.h"
|
|
#include "net/base/mime_util.h"
|
|
#include "net/base/net_errors.h"
|
|
|
|
namespace sky {
|
|
|
|
PlatformImpl::PlatformImpl() {
|
|
}
|
|
|
|
PlatformImpl::~PlatformImpl() {
|
|
}
|
|
|
|
blink::WebString PlatformImpl::defaultLocale() {
|
|
return blink::WebString::fromUTF8("en-US");
|
|
}
|
|
|
|
blink::WebUnitTestSupport* PlatformImpl::unitTestSupport() {
|
|
return &unit_test_support_;
|
|
}
|
|
|
|
} // namespace sky
|