| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 <stddef.h> |
| 6 |
| 5 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/macros.h" |
| 6 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 7 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
| 8 #include "base/time/time.h" | 11 #include "base/time/time.h" |
| 12 #include "build/build_config.h" |
| 9 #include "content/browser/gpu/gpu_data_manager_impl_private.h" | 13 #include "content/browser/gpu/gpu_data_manager_impl_private.h" |
| 10 #include "content/public/browser/gpu_data_manager_observer.h" | 14 #include "content/public/browser/gpu_data_manager_observer.h" |
| 11 #include "gpu/config/gpu_feature_type.h" | 15 #include "gpu/config/gpu_feature_type.h" |
| 12 #include "gpu/config/gpu_info.h" | 16 #include "gpu/config/gpu_info.h" |
| 13 #include "gpu/config/gpu_switches.h" | 17 #include "gpu/config/gpu_switches.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
| 15 #include "url/gurl.h" | 19 #include "url/gurl.h" |
| 16 | 20 |
| 17 #if defined(OS_WIN) | 21 #if defined(OS_WIN) |
| 18 #include "base/win/windows_version.h" | 22 #include "base/win/windows_version.h" |
| (...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 745 EXPECT_TRUE(manager->UpdateActiveGpu(0x8086, 0x04a1)); | 749 EXPECT_TRUE(manager->UpdateActiveGpu(0x8086, 0x04a1)); |
| 746 { | 750 { |
| 747 base::RunLoop run_loop; | 751 base::RunLoop run_loop; |
| 748 run_loop.RunUntilIdle(); | 752 run_loop.RunUntilIdle(); |
| 749 } | 753 } |
| 750 EXPECT_TRUE(observer.gpu_info_updated()); | 754 EXPECT_TRUE(observer.gpu_info_updated()); |
| 751 EXPECT_EQ(1u, manager->GetBlacklistedFeatureCount()); | 755 EXPECT_EQ(1u, manager->GetBlacklistedFeatureCount()); |
| 752 } | 756 } |
| 753 | 757 |
| 754 } // namespace content | 758 } // namespace content |
| OLD | NEW |