Skip to content

Commit

Permalink
[memprof] Use std::make_unique in unit tests (NFC) (#119175)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazutakahirata authored Dec 9, 2024
1 parent 4e59721 commit 1708519
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/unittests/ProfileData/MemProfTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ MATCHER_P4(FrameContains, FunctionName, LineOffset, Column, Inline, "") {
}

TEST(MemProf, FillsValue) {
std::unique_ptr<MockSymbolizer> Symbolizer(new MockSymbolizer());
auto Symbolizer = std::make_unique<MockSymbolizer>();

EXPECT_CALL(*Symbolizer, symbolizeInlinedCode(SectionedAddress{0x1000},
specifier(), false))
Expand Down Expand Up @@ -341,7 +341,7 @@ TEST(MemProf, RecordSerializationRoundTripVersion2HotColdSchema) {
}

TEST(MemProf, SymbolizationFilter) {
std::unique_ptr<MockSymbolizer> Symbolizer(new MockSymbolizer());
auto Symbolizer = std::make_unique<MockSymbolizer>();

EXPECT_CALL(*Symbolizer, symbolizeInlinedCode(SectionedAddress{0x1000},
specifier(), false))
Expand Down

0 comments on commit 1708519

Please sign in to comment.