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

Side by Side Diff: third_party/WebKit/Source/core/mojo/tests/JsToCppTest.cpp

Issue 2724673002: [WIP] Introduce ScriptResourceData
Patch Set: Compile fix Created 3 years, 4 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 #include "bindings/core/v8/ScriptController.h" 5 #include "bindings/core/v8/ScriptController.h"
6 #include "bindings/core/v8/ScriptSourceCode.h" 6 #include "bindings/core/v8/ScriptSourceCode.h"
7 #include "bindings/core/v8/V8BindingForCore.h" 7 #include "bindings/core/v8/V8BindingForCore.h"
8 #include "bindings/core/v8/V8BindingForTesting.h" 8 #include "bindings/core/v8/V8BindingForTesting.h"
9 #include "bindings/core/v8/V8ScriptRunner.h" 9 #include "bindings/core/v8/V8ScriptRunner.h"
10 #include "core/frame/Settings.h" 10 #include "core/frame/Settings.h"
11 #include "core/mojo/MojoHandle.h" 11 #include "core/mojo/MojoHandle.h"
12 #include "core/page/Page.h" 12 #include "core/page/Page.h"
13 #include "mojo/public/cpp/bindings/binding.h" 13 #include "mojo/public/cpp/bindings/binding.h"
14 #include "mojo/public/cpp/system/wait.h" 14 #include "mojo/public/cpp/system/wait.h"
15 #include "platform/SharedBuffer.h"
15 #include "platform/testing/UnitTestHelpers.h" 16 #include "platform/testing/UnitTestHelpers.h"
16 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
17 #include "third_party/WebKit/Source/core/mojo/tests/JsToCpp.mojom-blink.h" 18 #include "third_party/WebKit/Source/core/mojo/tests/JsToCpp.mojom-blink.h"
18 19
19 namespace blink { 20 namespace blink {
20 namespace { 21 namespace {
21 22
22 // Global value updated by some checks to prevent compilers from optimizing 23 // Global value updated by some checks to prevent compilers from optimizing
23 // reads out of existence. 24 // reads out of existence.
24 uint32_t g_waste_accumulator = 0; 25 uint32_t g_waste_accumulator = 0;
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 // These tests generate a lot of expected validation errors. Suppress logging. 428 // These tests generate a lot of expected validation errors. Suppress logging.
428 mojo::internal::ScopedSuppressValidationErrorLoggingForTests log_suppression; 429 mojo::internal::ScopedSuppressValidationErrorLoggingForTests log_suppression;
429 430
430 BackPointerCppSideConnection cpp_side_connection; 431 BackPointerCppSideConnection cpp_side_connection;
431 RunTest(&cpp_side_connection); 432 RunTest(&cpp_side_connection);
432 EXPECT_TRUE(cpp_side_connection.DidSucceed()); 433 EXPECT_TRUE(cpp_side_connection.DidSucceed());
433 } 434 }
434 435
435 } // namespace 436 } // namespace
436 } // namespace blink 437 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698