| Index: gpu/ipc/service/gpu_vsync_provider_unittest_win.cc
|
| diff --git a/gpu/ipc/service/gpu_vsync_provider_unittest_win.cc b/gpu/ipc/service/gpu_vsync_provider_unittest_win.cc
|
| index 2b96b4a493c80cd660f54c29283f334efc06b8cf..ceeb3324096054cbaa87d9ffb9c7c79ca0a47c9c 100644
|
| --- a/gpu/ipc/service/gpu_vsync_provider_unittest_win.cc
|
| +++ b/gpu/ipc/service/gpu_vsync_provider_unittest_win.cc
|
| @@ -2,7 +2,7 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "gpu/ipc/service/gpu_vsync_provider.h"
|
| +#include "gpu/ipc/service/gpu_vsync_provider_win.h"
|
|
|
| #include <memory>
|
|
|
| @@ -53,7 +53,7 @@ class GpuVSyncProviderTest : public testing::Test {
|
| TEST_F(GpuVSyncProviderTest, VSyncSignalTest) {
|
| SurfaceHandle window = ui::GetHiddenWindow();
|
|
|
| - std::unique_ptr<GpuVSyncProvider> provider = GpuVSyncProvider::Create(
|
| + GpuVSyncProviderForTest provider(
|
| base::Bind(&GpuVSyncProviderTest::OnVSync, base::Unretained(this)),
|
| window);
|
|
|
| @@ -65,11 +65,11 @@ TEST_F(GpuVSyncProviderTest, VSyncSignalTest) {
|
| EXPECT_FALSE(wait_result);
|
| EXPECT_EQ(0, vsync_count());
|
|
|
| - provider->EnableVSync(true);
|
| + provider.SetNeedsVSync(true);
|
|
|
| vsync_event_.Wait();
|
|
|
| - provider->EnableVSync(false);
|
| + provider.SetNeedsVSync(false);
|
|
|
| // Verify that VSync callbacks stop coming after disabling.
|
| // Please note that it might still be possible for one
|
|
|