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

Unified Diff: ppapi/tests/test_scrollbar.cc

Issue 1161563002: Remove unused in-process pepper APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « ppapi/tests/test_scrollbar.h ('k') | ppapi/thunk/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_scrollbar.cc
diff --git a/ppapi/tests/test_scrollbar.cc b/ppapi/tests/test_scrollbar.cc
deleted file mode 100644
index 521ac172eca3c75f2b67770f603c5d08da8dfbcd..0000000000000000000000000000000000000000
--- a/ppapi/tests/test_scrollbar.cc
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright (c) 2011 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 "ppapi/tests/test_scrollbar.h"
-
-#include <cstring>
-
-#include "ppapi/c/pp_input_event.h"
-#include "ppapi/cpp/input_event.h"
-#include "ppapi/cpp/instance.h"
-#include "ppapi/cpp/rect.h"
-#include "ppapi/tests/testing_instance.h"
-
-REGISTER_TEST_CASE(Scrollbar);
-
-TestScrollbar::TestScrollbar(TestingInstance* instance)
- : TestCase(instance),
- WidgetClient_Dev(instance),
- scrollbar_(instance, true),
- scrollbar_value_changed_(false) {
-}
-
-bool TestScrollbar::Init() {
- return CheckTestingInterface();
-}
-
-void TestScrollbar::RunTests(const std::string& filter) {
- RUN_TEST(HandleEvent, filter);
-}
-
-std::string TestScrollbar::TestHandleEvent() {
- pp::Rect location;
- location.set_width(1000);
- location.set_height(1000);
- scrollbar_.SetLocation(location);
-
- scrollbar_.SetDocumentSize(10000);
-
- pp::Core* core = pp::Module::Get()->core();
- pp::KeyboardInputEvent input_event(
- instance_, PP_INPUTEVENT_TYPE_KEYDOWN,
- core->GetTimeTicks(),
- 0, // Modifier.
- 0x28, // Key code = VKEY_DOWN.
- pp::Var(),
- pp::Var("ArrowDown"));
- scrollbar_.HandleEvent(input_event);
-
- return scrollbar_value_changed_ ?
- "" : "Didn't get callback for scrollbar value change";
-}
-
-void TestScrollbar::InvalidateWidget(pp::Widget_Dev widget,
- const pp::Rect& dirty_rect) {
-}
-
-void TestScrollbar::ScrollbarValueChanged(pp::Scrollbar_Dev scrollbar,
- uint32_t value) {
- if (scrollbar == scrollbar_)
- scrollbar_value_changed_ = true;
-}
-
-void TestScrollbar::ScrollbarOverlayChanged(pp::Scrollbar_Dev scrollbar,
- bool type) {
-}
« no previous file with comments | « ppapi/tests/test_scrollbar.h ('k') | ppapi/thunk/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698