Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Unified Diff: chrome/common/gpu_messages_unittest.cc

Issue 6346007: Refactor and improve gpu_info_collector: collect information on linux;... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: This should turn three trybots green Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/gpu_messages.cc ('k') | chrome/gpu/gpu_info_collector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/gpu_messages_unittest.cc
===================================================================
--- chrome/common/gpu_messages_unittest.cc (revision 71329)
+++ chrome/common/gpu_messages_unittest.cc (working copy)
@@ -12,14 +12,17 @@
// Test GPUInfo serialization
TEST(GPUIPCMessageTest, GPUInfo) {
GPUInfo input;
- // Test variables taken from Lenovo T61
+ // Test variables taken from HP Z600 Workstation
input.SetProgress(GPUInfo::kPartial);
input.SetInitializationTime(base::TimeDelta::FromMilliseconds(100));
- input.SetGraphicsInfo(0x10de, 0x429, L"6.14.11.7715",
- 0xffff0300,
- 0xfffe0300,
- 0x00010005,
- true);
+ input.SetVideoCardInfo(0x10de, 0x0658);
+ input.SetDriverInfo("NVIDIA", "195.36.24");
+ input.SetShaderVersion(0x0162, 0x0162);
+ input.SetGLVersion(0x0302);
+ input.SetGLVersionString("3.2.0 NVIDIA 195.36.24");
+ input.SetGLVendor("NVIDIA Corporation");
+ input.SetGLRenderer("Quadro FX 380/PCI/SSE2");
+ input.SetCanLoseContext(false);
IPC::Message msg(1, 2, IPC::Message::PRIORITY_NORMAL);
IPC::WriteParam(&msg, input);
@@ -32,13 +35,18 @@
output.initialization_time().InMilliseconds());
EXPECT_EQ(input.vendor_id(), output.vendor_id());
EXPECT_EQ(input.device_id(), output.device_id());
+ EXPECT_EQ(input.driver_vendor(), output.driver_vendor());
EXPECT_EQ(input.driver_version(), output.driver_version());
EXPECT_EQ(input.pixel_shader_version(), output.pixel_shader_version());
EXPECT_EQ(input.vertex_shader_version(), output.vertex_shader_version());
EXPECT_EQ(input.gl_version(), output.gl_version());
+ EXPECT_EQ(input.gl_version_string(), output.gl_version_string());
+ EXPECT_EQ(input.gl_vendor(), output.gl_vendor());
+ EXPECT_EQ(input.gl_renderer(), output.gl_renderer());
EXPECT_EQ(input.can_lose_context(), output.can_lose_context());
std::string log_message;
IPC::LogParam(output, &log_message);
- EXPECT_STREQ("<GPUInfo> 1 100 10de 429 6.14.11.7715 1", log_message.c_str());
+ EXPECT_STREQ("<GPUInfo> 1 100 10de 658 NVIDIA 195.36.24 162 162 302 0",
+ log_message.c_str());
}
« no previous file with comments | « chrome/common/gpu_messages.cc ('k') | chrome/gpu/gpu_info_collector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698