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

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

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 12 matching lines...) Expand all
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "platform/testing/TestingPlatformSupport.h" 31 #include "platform/testing/TestingPlatformSupport.h"
32 32
33 #include <memory>
33 #include "base/command_line.h" 34 #include "base/command_line.h"
34 #include "base/memory/discardable_memory_allocator.h" 35 #include "base/memory/discardable_memory_allocator.h"
35 #include "base/memory/ptr_util.h" 36 #include "base/memory/ptr_util.h"
36 #include "base/metrics/statistics_recorder.h" 37 #include "base/metrics/statistics_recorder.h"
37 #include "base/run_loop.h" 38 #include "base/run_loop.h"
38 #include "base/test/icu_test_util.h" 39 #include "base/test/icu_test_util.h"
39 #include "base/test/test_discardable_memory_allocator.h" 40 #include "base/test/test_discardable_memory_allocator.h"
40 #include "cc/blink/web_compositor_support_impl.h" 41 #include "cc/blink/web_compositor_support_impl.h"
41 #include "cc/test/ordered_simple_task_runner.h" 42 #include "cc/test/ordered_simple_task_runner.h"
42 #include "mojo/public/cpp/bindings/strong_binding.h" 43 #include "mojo/public/cpp/bindings/strong_binding.h"
43 #include "platform/HTTPNames.h" 44 #include "platform/HTTPNames.h"
44 #include "platform/heap/Heap.h" 45 #include "platform/heap/Heap.h"
45 #include "platform/loader/fetch/FetchInitiatorTypeNames.h" 46 #include "platform/loader/fetch/FetchInitiatorTypeNames.h"
46 #include "platform/network/mime/MockMimeRegistry.h" 47 #include "platform/network/mime/MockMimeRegistry.h"
47 #include "platform/scheduler/base/real_time_domain.h" 48 #include "platform/scheduler/base/real_time_domain.h"
48 #include "platform/scheduler/base/task_queue_manager.h" 49 #include "platform/scheduler/base/task_queue_manager.h"
49 #include "platform/scheduler/base/test_time_source.h" 50 #include "platform/scheduler/base/test_time_source.h"
50 #include "platform/scheduler/child/scheduler_tqm_delegate_for_test.h" 51 #include "platform/scheduler/child/scheduler_tqm_delegate_for_test.h"
51 #include "platform/scheduler/renderer/renderer_scheduler_impl.h" 52 #include "platform/scheduler/renderer/renderer_scheduler_impl.h"
52 #include "public/platform/InterfaceProvider.h" 53 #include "public/platform/InterfaceProvider.h"
53 #include "public/platform/WebContentLayer.h" 54 #include "public/platform/WebContentLayer.h"
54 #include "public/platform/WebExternalTextureLayer.h" 55 #include "public/platform/WebExternalTextureLayer.h"
55 #include "public/platform/WebImageLayer.h" 56 #include "public/platform/WebImageLayer.h"
56 #include "public/platform/WebScrollbarLayer.h" 57 #include "public/platform/WebScrollbarLayer.h"
57 #include "wtf/CryptographicallyRandomNumber.h" 58 #include "wtf/CryptographicallyRandomNumber.h"
58 #include "wtf/CurrentTime.h" 59 #include "wtf/CurrentTime.h"
59 #include "wtf/PtrUtil.h" 60 #include "wtf/PtrUtil.h"
60 #include "wtf/WTF.h" 61 #include "wtf/WTF.h"
61 #include "wtf/allocator/Partitions.h" 62 #include "wtf/allocator/Partitions.h"
62 #include <memory>
63 63
64 namespace blink { 64 namespace blink {
65 65
66 class TestingPlatformSupport::TestingInterfaceProvider 66 class TestingPlatformSupport::TestingInterfaceProvider
67 : public blink::InterfaceProvider { 67 : public blink::InterfaceProvider {
68 public: 68 public:
69 TestingInterfaceProvider() = default; 69 TestingInterfaceProvider() = default;
70 virtual ~TestingInterfaceProvider() = default; 70 virtual ~TestingInterfaceProvider() = default;
71 71
72 void getInterface(const char* name, 72 void getInterface(const char* name,
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 ThreadState::attachMainThread(); 342 ThreadState::attachMainThread();
343 ThreadState::current()->registerTraceDOMWrappers(nullptr, nullptr, nullptr, 343 ThreadState::current()->registerTraceDOMWrappers(nullptr, nullptr, nullptr,
344 nullptr); 344 nullptr);
345 HTTPNames::init(); 345 HTTPNames::init();
346 FetchInitiatorTypeNames::init(); 346 FetchInitiatorTypeNames::init();
347 } 347 }
348 348
349 ScopedUnittestsEnvironmentSetup::~ScopedUnittestsEnvironmentSetup() {} 349 ScopedUnittestsEnvironmentSetup::~ScopedUnittestsEnvironmentSetup() {}
350 350
351 } // namespace blink 351 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698