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

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

Issue 638813002: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/bindings (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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 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 5
6 #include "config.h" 6 #include "config.h"
7 #include "bindings/core/v8/ScriptStreamer.h" 7 #include "bindings/core/v8/ScriptStreamer.h"
8 8
9 #include "bindings/core/v8/ScriptSourceCode.h" 9 #include "bindings/core/v8/ScriptSourceCode.h"
10 #include "bindings/core/v8/ScriptStreamerThread.h" 10 #include "bindings/core/v8/ScriptStreamerThread.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 ResourceRequest m_resourceRequest; 125 ResourceRequest m_resourceRequest;
126 ScriptResource* m_resource; 126 ScriptResource* m_resource;
127 OwnPtrWillBePersistent<PendingScriptWrapper> m_pendingScript; 127 OwnPtrWillBePersistent<PendingScriptWrapper> m_pendingScript;
128 }; 128 };
129 129
130 class TestScriptResourceClient : public ScriptResourceClient { 130 class TestScriptResourceClient : public ScriptResourceClient {
131 public: 131 public:
132 TestScriptResourceClient() 132 TestScriptResourceClient()
133 : m_finished(false) { } 133 : m_finished(false) { }
134 134
135 virtual void notifyFinished(Resource*) OVERRIDE { m_finished = true; } 135 virtual void notifyFinished(Resource*) override { m_finished = true; }
136 136
137 bool finished() const { return m_finished; } 137 bool finished() const { return m_finished; }
138 138
139 private: 139 private:
140 bool m_finished; 140 bool m_finished;
141 }; 141 };
142 142
143 TEST_F(ScriptStreamingTest, CompilingStreamedScript) 143 TEST_F(ScriptStreamingTest, CompilingStreamedScript)
144 { 144 {
145 // Test that we can successfully compile a streamed script. 145 // Test that we can successfully compile a streamed script.
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 273
274 bool errorOccurred = false; 274 bool errorOccurred = false;
275 ScriptSourceCode sourceCode = pendingScript().getSource(KURL(), errorOccurre d); 275 ScriptSourceCode sourceCode = pendingScript().getSource(KURL(), errorOccurre d);
276 EXPECT_FALSE(errorOccurred); 276 EXPECT_FALSE(errorOccurred);
277 EXPECT_FALSE(sourceCode.streamer()); 277 EXPECT_FALSE(sourceCode.streamer());
278 } 278 }
279 279
280 } // namespace 280 } // namespace
281 281
282 } // namespace blink 282 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/ScriptStreamer.cpp ('k') | Source/bindings/core/v8/ScriptStreamerThread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698