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

Unified Diff: components/ui/zoom/test/zoom_test_utils.cc

Issue 2019423005: Move //components/ui/zoom to top-level under //components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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 | « components/ui/zoom/test/zoom_test_utils.h ('k') | components/ui/zoom/zoom_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ui/zoom/test/zoom_test_utils.cc
diff --git a/components/ui/zoom/test/zoom_test_utils.cc b/components/ui/zoom/test/zoom_test_utils.cc
deleted file mode 100644
index 94e8abdc99c6a48e0bfb099768bd900591ae5cd5..0000000000000000000000000000000000000000
--- a/components/ui/zoom/test/zoom_test_utils.cc
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2015 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 "components/ui/zoom/test/zoom_test_utils.h"
-
-#include "content/public/test/test_utils.h"
-
-namespace ui_zoom {
-
-bool operator==(const ZoomController::ZoomChangedEventData& lhs,
- const ZoomController::ZoomChangedEventData& rhs) {
- return lhs.web_contents == rhs.web_contents &&
- lhs.old_zoom_level == rhs.old_zoom_level &&
- lhs.new_zoom_level == rhs.new_zoom_level &&
- lhs.zoom_mode == rhs.zoom_mode &&
- lhs.can_show_bubble == rhs.can_show_bubble;
-}
-
-ZoomChangedWatcher::ZoomChangedWatcher(
- ZoomController* zoom_controller,
- const ZoomController::ZoomChangedEventData& expected_event_data)
- : zoom_controller_(zoom_controller),
- expected_event_data_(expected_event_data),
- message_loop_runner_(new content::MessageLoopRunner) {
- zoom_controller_->AddObserver(this);
- }
-
-ZoomChangedWatcher::~ZoomChangedWatcher() {
- zoom_controller_->RemoveObserver(this);
-}
-
-void ZoomChangedWatcher::Wait() {
- message_loop_runner_->Run();
-}
-
-void ZoomChangedWatcher::OnZoomChanged(
- const ZoomController::ZoomChangedEventData& event_data) {
- if (event_data == expected_event_data_)
- message_loop_runner_->Quit();
-}
-
-} // namespace ui_zoom
« no previous file with comments | « components/ui/zoom/test/zoom_test_utils.h ('k') | components/ui/zoom/zoom_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698