summaryrefslogtreecommitdiff
path: root/deps/v8/test/cctest/libplatform/test-tracing.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/cctest/libplatform/test-tracing.cc')
-rw-r--r--deps/v8/test/cctest/libplatform/test-tracing.cc14
1 files changed, 8 insertions, 6 deletions
diff --git a/deps/v8/test/cctest/libplatform/test-tracing.cc b/deps/v8/test/cctest/libplatform/test-tracing.cc
index 0d552c42b0..406f119f65 100644
--- a/deps/v8/test/cctest/libplatform/test-tracing.cc
+++ b/deps/v8/test/cctest/libplatform/test-tracing.cc
@@ -60,6 +60,9 @@ TEST(TestTraceObject) {
class ConvertableToTraceFormatMock : public v8::ConvertableToTraceFormat {
public:
+ ConvertableToTraceFormatMock(const ConvertableToTraceFormatMock&) = delete;
+ ConvertableToTraceFormatMock& operator=(const ConvertableToTraceFormatMock&) =
+ delete;
explicit ConvertableToTraceFormatMock(int value) : value_(value) {}
void AppendAsTraceFormat(std::string* out) const override {
*out += "[" + std::to_string(value_) + "," + std::to_string(value_) + "]";
@@ -67,8 +70,6 @@ class ConvertableToTraceFormatMock : public v8::ConvertableToTraceFormat {
private:
int value_;
-
- DISALLOW_COPY_AND_ASSIGN(ConvertableToTraceFormatMock);
};
class MockTraceWriter : public TraceWriter {
@@ -856,10 +857,11 @@ TEST(JsonIntegrationTest) {
std::vector<std::string> all_args;
GetJSONStrings(&all_args, json, "\"args\"", "{", "}");
- CHECK_EQ("\"1\":1e+100", all_args[0]);
- CHECK_EQ("\"2\":\"NaN\"", all_args[1]);
- CHECK_EQ("\"3\":\"Infinity\"", all_args[2]);
- CHECK_EQ("\"4\":\"-Infinity\"", all_args[3]);
+ // Ignore the first metadata event.
+ CHECK_EQ("\"1\":1e+100", all_args[1]);
+ CHECK_EQ("\"2\":\"NaN\"", all_args[2]);
+ CHECK_EQ("\"3\":\"Infinity\"", all_args[3]);
+ CHECK_EQ("\"4\":\"-Infinity\"", all_args[4]);
}
#endif // V8_USE_PERFETTO