Index: gpu/command_buffer/common/gles2_cmd_format_test.cc |
diff --git a/gpu/command_buffer/common/gles2_cmd_format_test.cc b/gpu/command_buffer/common/gles2_cmd_format_test.cc |
index ea683a668eb5fa94f07423a712c71cc37724e424..53598bd1ec1899dc5d3ad47c14b281c802c37cbe 100644 |
--- a/gpu/command_buffer/common/gles2_cmd_format_test.cc |
+++ b/gpu/command_buffer/common/gles2_cmd_format_test.cc |
@@ -4,13 +4,16 @@ |
// This file contains unit tests for gles2 commmands |
+#include "gpu/command_buffer/common/gles2_cmd_format.h" |
no sievers
2015/05/06 21:51:10
nit: move below std include
Sami
2015/05/07 10:44:11
Done.
|
+ |
#include <limits> |
#include "base/bind.h" |
+#include "base/location.h" |
+#include "base/single_thread_task_runner.h" |
#include "base/synchronization/waitable_event.h" |
#include "base/threading/thread.h" |
#include "testing/gtest/include/gtest/gtest.h" |
-#include "gpu/command_buffer/common/gles2_cmd_format.h" |
namespace gpu { |
namespace gles2 { |
@@ -94,18 +97,16 @@ TEST(GLES2FormatAsyncUploadSyncTest, AsyncUploadSync) { |
// Set the async upload token on the fake upload thread and assert that |
// the associated buffer still has the given token. |
- thread.message_loop()->PostTask(FROM_HERE, |
- base::Bind(&SignalCompletion, |
- &buffer_tokens[buffer], |
- async_token, |
- &sync)); |
+ thread.task_runner()->PostTask( |
+ FROM_HERE, base::Bind(&SignalCompletion, &buffer_tokens[buffer], |
+ async_token, &sync)); |
} |
// Flush the thread message loop before starting again. |
base::WaitableEvent waitable(false, false); |
- thread.message_loop()->PostTask(FROM_HERE, |
- base::Bind(&base::WaitableEvent::Signal, |
- base::Unretained(&waitable))); |
+ thread.task_runner()->PostTask( |
+ FROM_HERE, |
+ base::Bind(&base::WaitableEvent::Signal, base::Unretained(&waitable))); |
waitable.Wait(); |
} |
} |