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

Side by Side Diff: chrome/browser/automation/mock_tab_event_observer.h

Issue 14977013: Delete Automation[Tab/Renderer]Helper and users. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update now that 202087 is committed Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_AUTOMATION_MOCK_TAB_EVENT_OBSERVER_H_
6 #define CHROME_BROWSER_AUTOMATION_MOCK_TAB_EVENT_OBSERVER_H_
7
8 #include "chrome/browser/automation/automation_tab_helper.h"
9 #include "testing/gmock/include/gmock/gmock.h"
10
11 class MockTabEventObserver : public TabEventObserver {
12 public:
13 MockTabEventObserver();
14 // Convenience constructor for observing the |tab_helper| on creation.
15 explicit MockTabEventObserver(AutomationTabHelper* tab_helper);
16 virtual ~MockTabEventObserver();
17
18 // Promote these to public for testing purposes.
19 void StartObserving(AutomationTabHelper* tab_helper);
20 void StopObserving(AutomationTabHelper* tab_helper);
21
22 MOCK_METHOD1(OnFirstPendingLoad, void(content::WebContents* web_contents));
23 MOCK_METHOD1(OnNoMorePendingLoads, void(content::WebContents* web_contents));
24
25 private:
26 DISALLOW_COPY_AND_ASSIGN(MockTabEventObserver);
27 };
28
29 #endif // CHROME_BROWSER_AUTOMATION_MOCK_TAB_EVENT_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/automation/automation_tab_helper_unittest.cc ('k') | chrome/browser/automation/mock_tab_event_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698