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

Side by Side Diff: third_party/WebKit/Source/platform/testing/UnitTestHelpers.cpp

Issue 1845323002: Remove WebUnitTestSupport (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698