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

Unified Diff: sky/engine/platform/TracedValueTest.cpp

Issue 889823002: Remove TRACE_EVENT indirection through blink::Platform (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/platform/TracedValue.cpp ('k') | sky/engine/platform/exported/WebConvertableToTraceFormat.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/platform/TracedValueTest.cpp
diff --git a/sky/engine/platform/TracedValueTest.cpp b/sky/engine/platform/TracedValueTest.cpp
deleted file mode 100644
index 3c0fe63bcd9af2ecaf20f49859bc8dd7ee09b4a0..0000000000000000000000000000000000000000
--- a/sky/engine/platform/TracedValueTest.cpp
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "sky/engine/config.h"
-
-#include "sky/engine/platform/TracedValue.h"
-
-#include <gtest/gtest.h>
-
-using namespace blink;
-
-namespace {
-
-TEST(TracedValueTest, FlatDictionary)
-{
- RefPtr<TracedValue> value = TracedValue::create();
- value->setInteger("int", 2014);
- value->setDouble("double", 0.0);
- value->setBoolean("bool", true);
- value->setString("string", "string");
- String json = value->asTraceFormat();
- EXPECT_EQ("{\"int\":2014,\"double\":0,\"bool\":true,\"string\":\"string\"}", json);
-}
-
-TEST(TracedValueTest, Hierarchy)
-{
- RefPtr<TracedValue> value = TracedValue::create();
- value->setInteger("i0", 2014);
- value->beginDictionary("dict1");
- value->setInteger("i1", 2014);
- value->beginDictionary("dict2");
- value->setBoolean("b2", false);
- value->endDictionary();
- value->setString("s1", "foo");
- value->endDictionary();
- value->setDouble("d0", 0.0);
- value->setBoolean("b0", true);
- value->beginArray("a1");
- value->pushInteger(1);
- value->pushBoolean(true);
- value->beginDictionary();
- value->setInteger("i2", 3);
- value->endDictionary();
- value->endArray();
- value->setString("s0", "foo");
- String json = value->asTraceFormat();
- EXPECT_EQ("{\"i0\":2014,\"dict1\":{\"i1\":2014,\"dict2\":{\"b2\":false},\"s1\":\"foo\"},\"d0\":0,\"b0\":true,\"a1\":[1,true,{\"i2\":3}],\"s0\":\"foo\"}", json);
-}
-
-}
« no previous file with comments | « sky/engine/platform/TracedValue.cpp ('k') | sky/engine/platform/exported/WebConvertableToTraceFormat.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698