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

Unified Diff: services/view_manager/test_change_tracker.cc

Issue 1375313006: For c++, Generate enum classes instead of enum from mojom. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 2 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 | « services/view_manager/server_view.cc ('k') | services/view_manager/view_manager_service_apptest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/view_manager/test_change_tracker.cc
diff --git a/services/view_manager/test_change_tracker.cc b/services/view_manager/test_change_tracker.cc
index c611775155b3f018ea4e937f8ee44e3143a052a4..d88b2f104e2f5069b05d756371e856c76f18521f 100644
--- a/services/view_manager/test_change_tracker.cc
+++ b/services/view_manager/test_change_tracker.cc
@@ -29,7 +29,7 @@ std::string RectToString(const mojo::Rect& rect) {
}
std::string DirectionToString(mojo::OrderDirection direction) {
- return direction == mojo::ORDER_DIRECTION_ABOVE ? "above" : "below";
+ return direction == mojo::OrderDirection::ABOVE ? "above" : "below";
}
std::string ChangeToDescription1(const Change& change) {
@@ -152,8 +152,8 @@ Change::Change()
view_id(0),
view_id2(0),
view_id3(0),
- event_action(mojo::EVENT_TYPE_UNKNOWN),
- direction(mojo::ORDER_DIRECTION_ABOVE),
+ event_action(mojo::EventType::UNKNOWN),
+ direction(mojo::OrderDirection::ABOVE),
bool_value(false) {
}
« no previous file with comments | « services/view_manager/server_view.cc ('k') | services/view_manager/view_manager_service_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698