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

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

Issue 2860503002: mash: Replace int ShelfIDs with AppLaunchID strings. (Closed)
Patch Set: Fix struct traits typo. Created 3 years, 7 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.cc ('k') | no next file » | 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 8d470c6e9f82988c9a0787e21dd7e0e1b55ce29d..887b9927c7729eb1cf20f09f77b473ab5a3aa265 100644
--- a/ui/aura/mus/window_tree_client_unittest.cc
+++ b/ui/aura/mus/window_tree_client_unittest.cc
@@ -600,22 +600,22 @@ TEST_F(WindowTreeClientWmTest, SetRectProperty) {
// Verifies property setting behavior for a std::string* property.
TEST_F(WindowTreeClientWmTest, SetStringProperty) {
std::string example = "123";
- ASSERT_EQ(nullptr, root_window()->GetProperty(client::kAppIdKey));
- root_window()->SetProperty(client::kAppIdKey, new std::string(example));
- EXPECT_TRUE(root_window()->GetProperty(client::kAppIdKey));
+ ASSERT_NE(nullptr, root_window()->GetProperty(client::kNameKey));
+ root_window()->SetProperty(client::kNameKey, new std::string(example));
+ EXPECT_TRUE(root_window()->GetProperty(client::kNameKey));
base::Optional<std::vector<uint8_t>> value =
window_tree()->GetLastPropertyValue();
ASSERT_TRUE(value.has_value());
EXPECT_EQ(example, mojo::ConvertTo<std::string>(*value));
ASSERT_TRUE(window_tree()->AckSingleChangeOfType(
WindowTreeChangeType::PROPERTY, true));
- EXPECT_EQ(example, *root_window()->GetProperty(client::kAppIdKey));
+ EXPECT_EQ(example, *root_window()->GetProperty(client::kNameKey));
- root_window()->SetProperty(client::kAppIdKey, new std::string());
- EXPECT_EQ(std::string(), *root_window()->GetProperty(client::kAppIdKey));
+ root_window()->SetProperty(client::kNameKey, new std::string());
+ EXPECT_EQ(std::string(), *root_window()->GetProperty(client::kNameKey));
ASSERT_TRUE(window_tree()->AckSingleChangeOfType(
WindowTreeChangeType::PROPERTY, false));
- EXPECT_EQ(example, *root_window()->GetProperty(client::kAppIdKey));
+ EXPECT_EQ(example, *root_window()->GetProperty(client::kNameKey));
}
// Verifies visible is reverted if the server replied that the change failed.
« no previous file with comments | « ui/aura/mus/property_converter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698