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

Unified Diff: components/mus/ws/window_manager_client_apptest.cc

Issue 1527183003: Change mojo enums to be scoped enums in the generated C++ bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-binding-equals
Patch Set: Created 4 years, 12 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: components/mus/ws/window_manager_client_apptest.cc
diff --git a/components/mus/ws/window_manager_client_apptest.cc b/components/mus/ws/window_manager_client_apptest.cc
index 205fd92eada1510c7fe3ddea5c61b3a237376a56..e7311c9205640286d67e9cdf6ec69d6314dbe698 100644
--- a/components/mus/ws/window_manager_client_apptest.cc
+++ b/components/mus/ws/window_manager_client_apptest.cc
@@ -223,7 +223,7 @@ class WindowServerTest : public WindowServerTestBase {
// a response is received, or a timeout. On success the new WindowServer is
// returned.
EmbedResult Embed(Window* window) {
- return Embed(window, mus::mojom::WindowTree::ACCESS_POLICY_DEFAULT);
+ return Embed(window, mus::mojom::WindowTree::kAccessPolicyDefault);
}
EmbedResult Embed(Window* window, uint32_t access_policy_bitmask) {
@@ -991,7 +991,7 @@ TEST_F(WindowServerTest, EmbedRootSeesHierarchyChanged) {
window_manager()->GetRoot()->AddChild(embed_window);
WindowTreeConnection* vm2 =
- Embed(embed_window, mus::mojom::WindowTree::ACCESS_POLICY_EMBED_ROOT)
+ Embed(embed_window, mus::mojom::WindowTree::kAccessPolicyEmbedRoot)
.connection;
Window* vm2_v1 = vm2->NewWindow();
vm2->GetRoot()->AddChild(vm2_v1);
@@ -1010,7 +1010,7 @@ TEST_F(WindowServerTest, EmbedFromEmbedRoot) {
// Give the connection embedded at |embed_window| embed root powers.
const EmbedResult result1 =
- Embed(embed_window, mus::mojom::WindowTree::ACCESS_POLICY_EMBED_ROOT);
+ Embed(embed_window, mus::mojom::WindowTree::kAccessPolicyEmbedRoot);
WindowTreeConnection* vm2 = result1.connection;
EXPECT_EQ(result1.connection_id, vm2->GetConnectionId());
Window* vm2_v1 = vm2->NewWindow();

Powered by Google App Engine
This is Rietveld 408576698