| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #include "base/message_loop/message_loop.h" | 30 #include "base/message_loop/message_loop.h" |
| 31 #include "base/path_service.h" | 31 #include "base/path_service.h" |
| 32 #include "platform/SharedBuffer.h" | 32 #include "platform/SharedBuffer.h" |
| 33 #include "platform/Timer.h" | 33 #include "platform/Timer.h" |
| 34 #include "public/platform/FilePathConversion.h" | 34 #include "public/platform/FilePathConversion.h" |
| 35 #include "public/platform/Platform.h" | 35 #include "public/platform/Platform.h" |
| 36 #include "public/platform/WebString.h" | 36 #include "public/platform/WebString.h" |
| 37 #include "public/platform/WebTaskRunner.h" | 37 #include "public/platform/WebTaskRunner.h" |
| 38 #include "public/platform/WebThread.h" | 38 #include "public/platform/WebThread.h" |
| 39 #include "public/platform/WebTraceLocation.h" | 39 #include "public/platform/WebTraceLocation.h" |
| 40 #include "public/platform/WebUnitTestSupport.h" | |
| 41 #include "wtf/text/StringUTF8Adaptor.h" | 40 #include "wtf/text/StringUTF8Adaptor.h" |
| 42 | 41 |
| 43 namespace blink { | 42 namespace blink { |
| 44 namespace testing { | 43 namespace testing { |
| 45 | 44 |
| 46 void runPendingTasks() | 45 void runPendingTasks() |
| 47 { | 46 { |
| 48 Platform::current()->currentThread()->getWebTaskRunner()->postTask(BLINK_FRO
M_HERE, bind(&exitRunLoop)); | 47 Platform::current()->currentThread()->getWebTaskRunner()->postTask(BLINK_FRO
M_HERE, bind(&exitRunLoop)); |
| 49 enterRunLoop(); | 48 enterRunLoop(); |
| 50 } | 49 } |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 base::MessageLoop::current()->QuitWhenIdle(); | 81 base::MessageLoop::current()->QuitWhenIdle(); |
| 83 } | 82 } |
| 84 | 83 |
| 85 void yieldCurrentThread() | 84 void yieldCurrentThread() |
| 86 { | 85 { |
| 87 base::PlatformThread::YieldCurrentThread(); | 86 base::PlatformThread::YieldCurrentThread(); |
| 88 } | 87 } |
| 89 | 88 |
| 90 } // namespace testing | 89 } // namespace testing |
| 91 } // namespace blink | 90 } // namespace blink |
| OLD | NEW |