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

Side by Side Diff: ios/shared/chrome/browser/ui/toolbar/toolbar_test_util.h

Issue 2818573002: Add Toolbar test utility classes. (Closed)
Patch Set: Created 3 years, 8 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
OLDNEW
(Empty)
1 // Copyright 2017 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 IOS_SHARED_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_TEST_UTIL_H_
6 #define IOS_SHARED_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_TEST_UTIL_H_
7
8 #import "ios/web/public/test/fakes/test_navigation_manager.h"
9 #import "ios/web/public/test/fakes/test_web_state.h"
10
11 class ToolbarTestWebState : public web::TestWebState {
12 public:
13 ToolbarTestWebState();
14
15 double GetLoadingProgress() const override;
16 void set_loading_progress(double loading_progress);
17
18 private:
19 double loading_progress_;
20
21 DISALLOW_COPY_AND_ASSIGN(ToolbarTestWebState);
22 };
23
24 class ToolbarTestNavigationManager : public web::TestNavigationManager {
25 public:
26 ToolbarTestNavigationManager();
27
28 bool CanGoBack() const override;
29 bool CanGoForward() const override;
30
31 void set_can_go_back(bool can_go_back);
32 void set_can_go_forward(bool can_go_forward);
33
34 private:
35 bool can_go_back_;
36 bool can_go_forward_;
37 };
38
39 #endif // IOS_SHARED_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « ios/shared/chrome/browser/ui/toolbar/BUILD.gn ('k') | ios/shared/chrome/browser/ui/toolbar/toolbar_test_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698