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

Unified Diff: mojo/public/cpp/bindings/tests/versioning_apptest.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
Index: mojo/public/cpp/bindings/tests/versioning_apptest.cc
diff --git a/mojo/public/cpp/bindings/tests/versioning_apptest.cc b/mojo/public/cpp/bindings/tests/versioning_apptest.cc
index 18cbea939a016f1ef31583244cfd8b0509e75f54..39372729cc0d13af6dac0ab24fe128e0f6003a49 100644
--- a/mojo/public/cpp/bindings/tests/versioning_apptest.cc
+++ b/mojo/public/cpp/bindings/tests/versioning_apptest.cc
@@ -37,7 +37,7 @@ TEST_F(VersioningApplicationTest, Struct) {
EmployeePtr employee(Employee::New());
employee->employee_id = 1;
employee->name = "Homer Simpson";
- employee->department = DEPARTMENT_DEV;
+ employee->department = Department::DEV;
database_->QueryEmployee(1, true,
[&employee](EmployeePtr returned_employee,
@@ -51,7 +51,7 @@ TEST_F(VersioningApplicationTest, Struct) {
EmployeePtr new_employee(Employee::New());
new_employee->employee_id = 2;
new_employee->name = "Marge Simpson";
- new_employee->department = DEPARTMENT_SALES;
+ new_employee->department = Department::SALES;
database_->AddEmployee(new_employee.Clone(),
[](bool success) { EXPECT_TRUE(success); });
« no previous file with comments | « mojo/public/cpp/bindings/tests/union_unittest.cc ('k') | mojo/public/cpp/bindings/tests/versioning_test_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698