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

Unified Diff: mojo/public/cpp/bindings/tests/request_response_unittest.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/request_response_unittest.cc
diff --git a/mojo/public/cpp/bindings/tests/request_response_unittest.cc b/mojo/public/cpp/bindings/tests/request_response_unittest.cc
index 8bfeb5d543da7d0f4f306cb5c8b1c506313a345c..705f747e1a543bf36f2f4d412ee713aa27689509 100644
--- a/mojo/public/cpp/bindings/tests/request_response_unittest.cc
+++ b/mojo/public/cpp/bindings/tests/request_response_unittest.cc
@@ -140,11 +140,11 @@ TEST_F(RequestResponseTest, EchoEnum) {
ProviderImpl provider_impl(GetProxy(&provider));
sample::Enum value;
- provider->EchoEnum(sample::ENUM_VALUE, EnumRecorder(&value));
+ provider->EchoEnum(sample::Enum::VALUE, EnumRecorder(&value));
PumpMessages();
- EXPECT_EQ(sample::ENUM_VALUE, value);
+ EXPECT_EQ(sample::Enum::VALUE, value);
}
} // namespace
« no previous file with comments | « mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc ('k') | mojo/public/cpp/bindings/tests/sample_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698