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

Unified Diff: third_party/WebKit/Source/core/testing/PrivateScriptTestTest.cpp

Issue 2571063002: Remove Blink-in-JS (Closed)
Patch Set: Created 4 years 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
Index: third_party/WebKit/Source/core/testing/PrivateScriptTestTest.cpp
diff --git a/third_party/WebKit/Source/core/testing/PrivateScriptTestTest.cpp b/third_party/WebKit/Source/core/testing/PrivateScriptTestTest.cpp
deleted file mode 100644
index 4bc9f692fead709fd59d7bf36af92dfcb25933dd..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/testing/PrivateScriptTestTest.cpp
+++ /dev/null
@@ -1,59 +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 "core/testing/PrivateScriptTest.h"
-
-#include "bindings/core/v8/PrivateScriptRunner.h"
-#include "bindings/core/v8/V8Binding.h"
-#include "bindings/core/v8/V8BindingForTesting.h"
-#include "bindings/core/v8/V8PrivateScriptTest.h"
-#include "core/testing/DummyPageHolder.h"
-#include "testing/gtest/include/gtest/gtest.h"
-#include <memory>
-
-// PrivateScriptTest.js is available only in debug builds.
-#ifndef NDEBUG
-namespace blink {
-
-namespace {
-
-TEST(PrivateScriptTestTest, invokePrivateScriptMethodFromCPP) {
- V8TestingScope scope;
- PrivateScriptTest* privateScriptTest =
- PrivateScriptTest::create(&scope.document());
- bool success;
- int result;
- success =
- V8PrivateScriptTest::PrivateScript::addIntegerForPrivateScriptOnlyMethod(
- &scope.frame(), privateScriptTest, 100, 200, &result);
- EXPECT_TRUE(success);
- EXPECT_EQ(result, 300);
-}
-
-TEST(PrivateScriptTestTest, invokePrivateScriptAttributeFromCPP) {
- V8TestingScope scope;
- PrivateScriptTest* privateScriptTest =
- PrivateScriptTest::create(&scope.document());
- bool success;
- String result;
- success = V8PrivateScriptTest::PrivateScript::
- stringAttributeForPrivateScriptOnlyAttributeGetter(
- &scope.frame(), privateScriptTest, &result);
- EXPECT_TRUE(success);
- EXPECT_EQ(result, "yyy");
- success = V8PrivateScriptTest::PrivateScript::
- stringAttributeForPrivateScriptOnlyAttributeSetter(
- &scope.frame(), privateScriptTest, "foo");
- EXPECT_TRUE(success);
- success = V8PrivateScriptTest::PrivateScript::
- stringAttributeForPrivateScriptOnlyAttributeGetter(
- &scope.frame(), privateScriptTest, &result);
- EXPECT_TRUE(success);
- EXPECT_EQ(result, "foo");
-}
-
-} // namespace
-
-} // namespace blink
-#endif
« no previous file with comments | « third_party/WebKit/Source/core/testing/PrivateScriptTest.js ('k') | third_party/WebKit/public/blink_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698