| Index: content/browser/gpu/gpu_data_manager_impl_private_unittest.cc
|
| diff --git a/content/browser/gpu/gpu_data_manager_impl_private_unittest.cc b/content/browser/gpu/gpu_data_manager_impl_private_unittest.cc
|
| index 137e9ca0a51ea7dfef90c68397b4a08dc3d7cd96..37afb585b82eac2f3c857ba4ce5b38ae9827e734 100644
|
| --- a/content/browser/gpu/gpu_data_manager_impl_private_unittest.cc
|
| +++ b/content/browser/gpu/gpu_data_manager_impl_private_unittest.cc
|
| @@ -32,32 +32,19 @@ namespace {
|
|
|
| class TestObserver : public GpuDataManagerObserver {
|
| public:
|
| - TestObserver()
|
| - : gpu_info_updated_(false),
|
| - video_memory_usage_stats_updated_(false) {
|
| - }
|
| + TestObserver() {}
|
| ~TestObserver() override {}
|
|
|
| bool gpu_info_updated() const { return gpu_info_updated_; }
|
| - bool video_memory_usage_stats_updated() const {
|
| - return video_memory_usage_stats_updated_;
|
| - }
|
|
|
| void OnGpuInfoUpdate() override { gpu_info_updated_ = true; }
|
|
|
| - void OnVideoMemoryUsageStatsUpdate(
|
| - const gpu::VideoMemoryUsageStats& stats) override {
|
| - video_memory_usage_stats_updated_ = true;
|
| - }
|
| -
|
| void Reset() {
|
| gpu_info_updated_ = false;
|
| - video_memory_usage_stats_updated_ = false;
|
| }
|
|
|
| private:
|
| - bool gpu_info_updated_;
|
| - bool video_memory_usage_stats_updated_;
|
| + bool gpu_info_updated_ = false;
|
| };
|
|
|
| static base::Time GetTimeForTesting() {
|
| @@ -404,27 +391,6 @@ TEST_F(GpuDataManagerImplPrivateTest, NoGpuInfoUpdateWithSwiftShader) {
|
| }
|
| }
|
|
|
| -TEST_F(GpuDataManagerImplPrivateTest, GPUVideoMemoryUsageStatsUpdate) {
|
| - ScopedGpuDataManagerImpl manager;
|
| -
|
| - TestObserver observer;
|
| - manager->AddObserver(&observer);
|
| -
|
| - {
|
| - base::RunLoop run_loop;
|
| - run_loop.RunUntilIdle();
|
| - }
|
| - EXPECT_FALSE(observer.video_memory_usage_stats_updated());
|
| -
|
| - gpu::VideoMemoryUsageStats vram_stats;
|
| - manager->UpdateVideoMemoryUsageStats(vram_stats);
|
| - {
|
| - base::RunLoop run_loop;
|
| - run_loop.RunUntilIdle();
|
| - }
|
| - EXPECT_TRUE(observer.video_memory_usage_stats_updated());
|
| -}
|
| -
|
| base::Time GpuDataManagerImplPrivateTest::JustBeforeExpiration(
|
| const GpuDataManagerImplPrivate* manager) {
|
| return GetTimeForTesting() + base::TimeDelta::FromMilliseconds(
|
|
|