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

Unified Diff: mojo/edk/system/dispatcher_unittest.cc

Issue 1160203002: Make Dispatcher::Type an enum class. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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
Index: mojo/edk/system/dispatcher_unittest.cc
diff --git a/mojo/edk/system/dispatcher_unittest.cc b/mojo/edk/system/dispatcher_unittest.cc
index 97e2eed9c6b1016555c4b7d4eea9e72fb099426c..2b853d27927dbe7b92aa0c73b11df7c035d561ac 100644
--- a/mojo/edk/system/dispatcher_unittest.cc
+++ b/mojo/edk/system/dispatcher_unittest.cc
@@ -23,7 +23,7 @@ class TrivialDispatcher : public Dispatcher {
public:
TrivialDispatcher() {}
- Type GetType() const override { return kTypeUnknown; }
+ Type GetType() const override { return Type::UNKNOWN; }
private:
friend class base::RefCountedThreadSafe<TrivialDispatcher>;
@@ -41,7 +41,7 @@ class TrivialDispatcher : public Dispatcher {
TEST(DispatcherTest, Basic) {
scoped_refptr<Dispatcher> d(new TrivialDispatcher());
- EXPECT_EQ(Dispatcher::kTypeUnknown, d->GetType());
+ EXPECT_EQ(Dispatcher::Type::UNKNOWN, d->GetType());
EXPECT_EQ(MOJO_RESULT_INVALID_ARGUMENT,
d->WriteMessage(NullUserPointer(), 0, nullptr,

Powered by Google App Engine
This is Rietveld 408576698