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

Unified Diff: ui/aura/mus/window_tree_client_unittest.cc

Issue 2702423004: Validate incoming window properties. (Closed)
Patch Set: rebase to tot Created 3 years, 10 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
Index: ui/aura/mus/window_tree_client_unittest.cc
diff --git a/ui/aura/mus/window_tree_client_unittest.cc b/ui/aura/mus/window_tree_client_unittest.cc
index 8289b88a825ad8f775c58fafb359db73ce836169..d216dea0bd653ce6cda5572ee9c7ccb25aaea26e 100644
--- a/ui/aura/mus/window_tree_client_unittest.cc
+++ b/ui/aura/mus/window_tree_client_unittest.cc
@@ -75,9 +75,12 @@ bool IsWindowHostVisible(Window* window) {
// Register some test window properties for aura/mus conversion.
void RegisterTestProperties(PropertyConverter* converter) {
- converter->RegisterProperty(kTestPropertyKey1, kTestPropertyServerKey1);
- converter->RegisterProperty(kTestPropertyKey2, kTestPropertyServerKey2);
- converter->RegisterProperty(kTestPropertyKey3, kTestPropertyServerKey3);
+ converter->RegisterProperty(kTestPropertyKey1, kTestPropertyServerKey1,
+ PropertyConverter::AcceptAnyValue());
+ converter->RegisterProperty(kTestPropertyKey2, kTestPropertyServerKey2,
+ PropertyConverter::AcceptAnyValue());
+ converter->RegisterProperty(kTestPropertyKey3, kTestPropertyServerKey3,
+ PropertyConverter::AcceptAnyValue());
}
// Convert a primitive aura property value to a mus transport value.

Powered by Google App Engine
This is Rietveld 408576698