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

Unified Diff: ui/views/test/widget_test.h

Issue 1782773002: MacViews: Fix ViewTest.HandleAccelerator by faking window activation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Faked activations for everyone! Created 4 years, 9 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 | « ui/views/test/views_test_helper_mac.mm ('k') | ui/views/test/widget_test_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/test/widget_test.h
diff --git a/ui/views/test/widget_test.h b/ui/views/test/widget_test.h
index 0eee5eeab5b7ee2c4b160dae4fd918bbd12ec553..238de54ef85779633a3e4e6c393ee1372b17a47b 100644
--- a/ui/views/test/widget_test.h
+++ b/ui/views/test/widget_test.h
@@ -33,21 +33,6 @@ namespace test {
class WidgetTest : public ViewsTestBase {
public:
- // Scoped handle that fakes all widgets into claiming they are active. This
- // allows a test to assume active status does not get stolen by a test that
- // may be running in parallel. It shouldn't be used in tests that create
- // multiple widgets.
- class FakeActivation {
- public:
- virtual ~FakeActivation() {}
-
- protected:
- FakeActivation() {}
-
- private:
- DISALLOW_COPY_AND_ASSIGN(FakeActivation);
- };
-
WidgetTest();
~WidgetTest() override;
@@ -104,10 +89,6 @@ class WidgetTest : public ViewsTestBase {
static ui::internal::InputMethodDelegate* GetInputMethodDelegateForWidget(
Widget* widget);
-#if defined(OS_MACOSX)
- static scoped_ptr<FakeActivation> FakeWidgetIsActiveAlways();
-#endif
-
private:
DISALLOW_COPY_AND_ASSIGN(WidgetTest);
};
« no previous file with comments | « ui/views/test/views_test_helper_mac.mm ('k') | ui/views/test/widget_test_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698