| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 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 BLIMP_CLIENT_FEATURE_MOCK_NAVIGATION_FEATURE_H_ |
| 6 #define BLIMP_CLIENT_FEATURE_MOCK_NAVIGATION_FEATURE_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "blimp/client/feature/navigation_feature.h" |
| 11 #include "testing/gmock/include/gmock/gmock.h" |
| 12 #include "url/gurl.h" |
| 13 |
| 14 namespace blimp { |
| 15 namespace client { |
| 16 |
| 17 class MockNavigationFeature : public NavigationFeature { |
| 18 public: |
| 19 MockNavigationFeature(); |
| 20 ~MockNavigationFeature(); |
| 21 |
| 22 MOCK_METHOD1(Reload, void(int tab_id)); |
| 23 MOCK_METHOD1(GoBack, void(int tab_id)); |
| 24 MOCK_METHOD1(GoForward, void(int tab_id)); |
| 25 |
| 26 void NavigateToUrlText(int tab_id, const std::string& url_text) override; |
| 27 }; |
| 28 |
| 29 } // namespace client |
| 30 } // namespace blimp |
| 31 |
| 32 #endif // BLIMP_CLIENT_FEATURE_MOCK_NAVIGATION_FEATURE_H_ |
| OLD | NEW |