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

Unified Diff: services/ui/public/cpp/tests/window_tree_client_unittest.cc

Issue 2607063002: Remove mojo::Array. (Closed)
Patch Set: Created 3 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
Index: services/ui/public/cpp/tests/window_tree_client_unittest.cc
diff --git a/services/ui/public/cpp/tests/window_tree_client_unittest.cc b/services/ui/public/cpp/tests/window_tree_client_unittest.cc
index 2b899c411c2ee5c29ce36f25f911d72211de3810..1c4efc24f4526e33c2aa5d5b52d010cd0d4c2e90 100644
--- a/services/ui/public/cpp/tests/window_tree_client_unittest.cc
+++ b/services/ui/public/cpp/tests/window_tree_client_unittest.cc
@@ -8,7 +8,6 @@
#include "base/logging.h"
#include "base/macros.h"
-#include "mojo/common/common_type_converters.h"
#include "services/ui/common/util.h"
#include "services/ui/public/cpp/input_event_handler.h"
#include "services/ui/public/cpp/property_type_converters.h"
@@ -774,10 +773,12 @@ TEST_F(WindowTreeClientTest, NewTopLevelWindowGetsAllChangesInFlight) {
data->window_id = server_id(root2);
data->bounds.SetRect(1, 2, 3, 4);
data->visible = true;
+ constexpr char kXxName[] = "server_xx";
data->properties["xx"] =
- mojo::Array<uint8_t>::From(std::string("server_xx")).PassStorage();
+ std::vector<uint8_t>(kXxName, kXxName + strlen(kXxName));
+ constexpr char kYyName[] = "server_yy";
data->properties["yy"] =
- mojo::Array<uint8_t>::From(std::string("server_yy")).PassStorage();
+ std::vector<uint8_t>(kYyName, kYyName + strlen(kYyName));
const int64_t display_id = 1;
setup.window_tree_client()->OnTopLevelCreated(
new_window_in_flight_change_id, std::move(data), display_id, true);

Powered by Google App Engine
This is Rietveld 408576698