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

Unified Diff: mojo/edk/test/test_io_thread.cc

Issue 1367523003: EDK: mostly style fix: change TestIOThread::Mode to an enum class. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 3 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 | « mojo/edk/test/test_io_thread.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/test/test_io_thread.cc
diff --git a/mojo/edk/test/test_io_thread.cc b/mojo/edk/test/test_io_thread.cc
index b5b9042cf66aa99ad77e70d61a9154328c165175..e7bcac14dc2cee0acbbbf4e1e9a146b72f7ebe4a 100644
--- a/mojo/edk/test/test_io_thread.cc
+++ b/mojo/edk/test/test_io_thread.cc
@@ -21,13 +21,13 @@ void PostTaskAndWaitHelper(base::WaitableEvent* event,
} // namespace
-TestIOThread::TestIOThread(Mode mode)
+TestIOThread::TestIOThread(StartMode start_mode)
: io_thread_("test_io_thread"), io_thread_started_(false) {
- switch (mode) {
- case kAutoStart:
+ switch (start_mode) {
+ case StartMode::AUTO:
Start();
return;
- case kManualStart:
+ case StartMode::MANUAL:
return;
}
CHECK(false) << "Invalid mode";
« no previous file with comments | « mojo/edk/test/test_io_thread.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698