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

Side by Side Diff: Source/bindings/core/v8/V8ScriptRunnerTest.cpp

Issue 721373002: Revert "Optionally compress V8 code cache data with snappy." (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « Source/bindings/core/v8/V8ScriptRunner.cpp ('k') | Source/core/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "config.h" 5 #include "config.h"
6 #include "bindings/core/v8/V8ScriptRunner.h" 6 #include "bindings/core/v8/V8ScriptRunner.h"
7 7
8 #include "bindings/core/v8/V8Binding.h" 8 #include "bindings/core/v8/V8Binding.h"
9 #include "core/fetch/ScriptResource.h" 9 #include "core/fetch/ScriptResource.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 } 131 }
132 132
133 TEST_F(V8ScriptRunnerTest, codeOptions) 133 TEST_F(V8ScriptRunnerTest, codeOptions)
134 { 134 {
135 setResource(); 135 setResource();
136 EXPECT_TRUE(compileScript(V8CacheOptionsCode)); 136 EXPECT_TRUE(compileScript(V8CacheOptionsCode));
137 EXPECT_FALSE(m_resource->cachedMetadata(tagForParserCache())); 137 EXPECT_FALSE(m_resource->cachedMetadata(tagForParserCache()));
138 138
139 // FIXME: Code caching is presently still disabled. 139 // FIXME: Code caching is presently still disabled.
140 // Enable EXPECT when code caching lands. 140 // Enable EXPECT when code caching lands.
141 // EXPECT_TRUE(m_resource->cachedMetadata(tagForCodeCache(false)));
142 }
143
144 TEST_F(V8ScriptRunnerTest, codeCompressedOptions)
145 {
146 setResource();
147 EXPECT_TRUE(compileScript(V8CacheOptionsCodeCompressed));
148 EXPECT_FALSE(m_resource->cachedMetadata(tagForParserCache()));
149
150 // FIXME: Code caching is presently still disabled.
151 // Enable EXPECT when code caching lands.
152 // EXPECT_TRUE(m_resource->cachedMetadata(tagForCodeCache())); 141 // EXPECT_TRUE(m_resource->cachedMetadata(tagForCodeCache()));
153 } 142 }
154 143
155 } // namespace 144 } // namespace
156 145
157 } // namespace blink 146 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/V8ScriptRunner.cpp ('k') | Source/core/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698