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

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

Issue 2702423004: Validate incoming window properties. (Closed)
Patch Set: sky comments 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
« no previous file with comments | « ui/aura/mus/property_converter_unittest.cc ('k') | ui/views/mus/mus_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 76dcf10e58846047070855359b207796cb78cc4d..86c9d4ce89a1c2e75f42f33988bd689c2b4ca550 100644
--- a/ui/aura/mus/window_tree_client_unittest.cc
+++ b/ui/aura/mus/window_tree_client_unittest.cc
@@ -73,9 +73,15 @@ 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::CreateAcceptAnyValueCallback());
+ converter->RegisterProperty(
+ kTestPropertyKey2, kTestPropertyServerKey2,
+ PropertyConverter::CreateAcceptAnyValueCallback());
+ converter->RegisterProperty(
+ kTestPropertyKey3, kTestPropertyServerKey3,
+ PropertyConverter::CreateAcceptAnyValueCallback());
}
// Convert a primitive aura property value to a mus transport value.
« no previous file with comments | « ui/aura/mus/property_converter_unittest.cc ('k') | ui/views/mus/mus_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698