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

Unified Diff: gpu/command_buffer/service/shader_manager_unittest.cc

Issue 10812002: Bug fixes for getTranslatedShader (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: last fixes Created 8 years, 5 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 | « gpu/command_buffer/service/shader_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/shader_manager_unittest.cc
diff --git a/gpu/command_buffer/service/shader_manager_unittest.cc b/gpu/command_buffer/service/shader_manager_unittest.cc
index fb1efe444eb088c48c16384742b2dfd2df455194..f03a034e694d8820e267af94fb82c986f52dacd4 100644
--- a/gpu/command_buffer/service/shader_manager_unittest.cc
+++ b/gpu/command_buffer/service/shader_manager_unittest.cc
@@ -253,11 +253,17 @@ TEST_F(ShaderManagerTest, ShaderInfoStoreCompilationStatus) {
kClientId, kServiceId, kShaderType);
ASSERT_TRUE(info != NULL);
+ EXPECT_EQ(ShaderManager::ShaderInfo::NOT_COMPILED,
+ info->compilation_status());
info->UpdateSource("original source");
+ EXPECT_EQ(ShaderManager::ShaderInfo::NOT_COMPILED,
+ info->compilation_status());
info->FlagSourceAsCompiled(false);
- EXPECT_FALSE(info->source_compiled());
+ EXPECT_EQ(ShaderManager::ShaderInfo::PENDING_DEFERRED_COMPILE,
+ info->compilation_status());
info->FlagSourceAsCompiled(true);
- EXPECT_TRUE(info->source_compiled());
+ EXPECT_EQ(ShaderManager::ShaderInfo::COMPILED,
+ info->compilation_status());
}
TEST_F(ShaderManagerTest, ShaderInfoStoreDeferredSource) {
« no previous file with comments | « gpu/command_buffer/service/shader_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698