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

Side by Side Diff: third_party/WebKit/Source/platform/heap/PersistentTest.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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "platform/heap/Persistent.h" 5 #include "platform/heap/Persistent.h"
6 6
7 #include <memory>
7 #include "platform/CrossThreadFunctional.h" 8 #include "platform/CrossThreadFunctional.h"
8 #include "platform/heap/Handle.h" 9 #include "platform/heap/Handle.h"
9 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
10 #include <memory>
11 11
12 namespace blink { 12 namespace blink {
13 namespace { 13 namespace {
14 14
15 void preciselyCollectGarbage() { 15 void preciselyCollectGarbage() {
16 ThreadState::current()->collectGarbage( 16 ThreadState::current()->collectGarbage(
17 BlinkGC::NoHeapPointersOnStack, BlinkGC::GCWithSweep, BlinkGC::ForcedGC); 17 BlinkGC::NoHeapPointersOnStack, BlinkGC::GCWithSweep, BlinkGC::ForcedGC);
18 } 18 }
19 19
20 class Receiver : public GarbageCollected<Receiver> { 20 class Receiver : public GarbageCollected<Receiver> {
(...skipping 30 matching lines...) Expand all
51 EXPECT_EQ(1, counter); 51 EXPECT_EQ(1, counter);
52 52
53 receiver = nullptr; 53 receiver = nullptr;
54 preciselyCollectGarbage(); 54 preciselyCollectGarbage();
55 (*function)(); 55 (*function)();
56 EXPECT_EQ(1, counter); 56 EXPECT_EQ(1, counter);
57 } 57 }
58 58
59 } // namespace 59 } // namespace
60 } // namespace blink 60 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/heap/PersistentNode.h ('k') | third_party/WebKit/Source/platform/heap/RunAllTests.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698