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

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: rebase Created 4 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 | « components/mus/ws/window_manager_access_policy.cc ('k') | components/mus/ws/window_tree_apptest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 abf575f91f9dab95a80fb4b4cdf44b18e04a5983..82f731025aafc449b287633fb56b7b0a2814b181 100644
--- a/components/mus/ws/window_manager_client_apptest.cc
+++ b/components/mus/ws/window_manager_client_apptest.cc
@@ -229,7 +229,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) {
@@ -995,7 +995,7 @@ TEST_F(WindowServerTest, EmbedRootSeesHierarchyChanged) {
GetFirstWMRoot()->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();
GetFirstRoot(vm2)->AddChild(vm2_v1);
@@ -1014,7 +1014,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();
« no previous file with comments | « components/mus/ws/window_manager_access_policy.cc ('k') | components/mus/ws/window_tree_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698