Chromium Code Reviews| Index: content/browser/service_worker/embedded_worker_instance_unittest.cc |
| diff --git a/content/browser/service_worker/embedded_worker_instance_unittest.cc b/content/browser/service_worker/embedded_worker_instance_unittest.cc |
| index 5c1b853d56b806988f41646ea158ab16fbb0dc5e..fa12a3093db57c3ebc6430cacfddd0618b338746 100644 |
| --- a/content/browser/service_worker/embedded_worker_instance_unittest.cc |
| +++ b/content/browser/service_worker/embedded_worker_instance_unittest.cc |
| @@ -74,12 +74,11 @@ TEST_F(EmbeddedWorkerInstanceTest, StartAndStop) { |
| url, |
| false, |
| base::Bind(&SaveStatusAndCall, &status, run_loop.QuitClosure())); |
| + EXPECT_EQ(EmbeddedWorkerInstance::STARTING, worker->status()); |
| run_loop.Run(); |
| EXPECT_EQ(SERVICE_WORKER_OK, status); |
| - EXPECT_EQ(EmbeddedWorkerInstance::STARTING, worker->status()); |
| - base::RunLoop().RunUntilIdle(); |
| - // Worker started message should be notified (by EmbeddedWorkerTestHelper). |
| + // The 'WorkerStarted' message should be notified. |
|
falken
2014/11/06 04:36:30
Ah, this is confusing grammar. You notify a listen
nhiroki
2014/11/06 04:47:12
Oh... sorry for my injudicious changes :( Fixed.
|
| EXPECT_EQ(EmbeddedWorkerInstance::RUNNING, worker->status()); |
| EXPECT_EQ(kRenderProcessId, worker->process_id()); |
| @@ -88,7 +87,7 @@ TEST_F(EmbeddedWorkerInstanceTest, StartAndStop) { |
| EXPECT_EQ(EmbeddedWorkerInstance::STOPPING, worker->status()); |
| base::RunLoop().RunUntilIdle(); |
| - // Worker stopped message should be notified (by EmbeddedWorkerTestHelper). |
| + // The 'WorkerStopped' message should be notified. |
| EXPECT_EQ(EmbeddedWorkerInstance::STOPPED, worker->status()); |
| // Verify that we've sent two messages to start and terminate the worker. |