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

Side by Side Diff: components/zoom/test/zoom_test_utils.h

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, 6 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
« no previous file with comments | « components/zoom/test/DEPS ('k') | components/zoom/test/zoom_test_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef COMPONENTS_UI_ZOOM_ZOOM_TEST_UTILS_H_ 5 #ifndef COMPONENTS_ZOOM_ZOOM_TEST_UTILS_H_
6 #define COMPONENTS_UI_ZOOM_ZOOM_TEST_UTILS_H_ 6 #define COMPONENTS_ZOOM_ZOOM_TEST_UTILS_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/ui/zoom/zoom_controller.h" 9 #include "components/zoom/zoom_controller.h"
10 #include "components/ui/zoom/zoom_observer.h" 10 #include "components/zoom/zoom_observer.h"
11 11
12 namespace content { 12 namespace content {
13 class MessageLoopRunner; 13 class MessageLoopRunner;
14 } 14 }
15 15
16 namespace ui_zoom { 16 namespace zoom {
17 17
18 bool operator==(const ZoomController::ZoomChangedEventData& lhs, 18 bool operator==(const ZoomController::ZoomChangedEventData& lhs,
19 const ZoomController::ZoomChangedEventData& rhs); 19 const ZoomController::ZoomChangedEventData& rhs);
20 20
21 class ZoomChangedWatcher : public ui_zoom::ZoomObserver { 21 class ZoomChangedWatcher : public zoom::ZoomObserver {
22 public: 22 public:
23 ZoomChangedWatcher( 23 ZoomChangedWatcher(
24 ZoomController* zoom_controller, 24 ZoomController* zoom_controller,
25 const ZoomController::ZoomChangedEventData& expected_event_data); 25 const ZoomController::ZoomChangedEventData& expected_event_data);
26 ~ZoomChangedWatcher() override; 26 ~ZoomChangedWatcher() override;
27 27
28 void Wait(); 28 void Wait();
29 29
30 void OnZoomChanged( 30 void OnZoomChanged(
31 const ZoomController::ZoomChangedEventData& event_data) override; 31 const ZoomController::ZoomChangedEventData& event_data) override;
32 32
33 private: 33 private:
34 ZoomController* zoom_controller_; 34 ZoomController* zoom_controller_;
35 ZoomController::ZoomChangedEventData expected_event_data_; 35 ZoomController::ZoomChangedEventData expected_event_data_;
36 scoped_refptr<content::MessageLoopRunner> message_loop_runner_; 36 scoped_refptr<content::MessageLoopRunner> message_loop_runner_;
37 37
38 DISALLOW_COPY_AND_ASSIGN(ZoomChangedWatcher); 38 DISALLOW_COPY_AND_ASSIGN(ZoomChangedWatcher);
39 }; 39 };
40 40
41 } // namespace ui_zoom 41 } // namespace zoom
42 #endif // COMPONENTS_UI_ZOOM_ZOOM_TEST_UTILS_H_ 42 #endif // COMPONENTS_ZOOM_ZOOM_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « components/zoom/test/DEPS ('k') | components/zoom/test/zoom_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698