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_TEST_CONTENTS_MOCK_BLIMP_CONTENTS_OBSERVER_H_ | |
6 #define BLIMP_CLIENT_TEST_CONTENTS_MOCK_BLIMP_CONTENTS_OBSERVER_H_ | |
7 | |
8 #include "blimp/client/public/contents/blimp_contents_observer.h" | |
9 #include "testing/gmock/include/gmock/gmock.h" | |
10 | |
11 namespace blimp { | |
12 namespace client { | |
13 | |
14 class MockBlimpContentsObserver : public BlimpContentsObserver { | |
15 public: | |
16 explicit MockBlimpContentsObserver(BlimpContents* contents); | |
17 ~MockBlimpContentsObserver() override; | |
18 | |
19 MOCK_METHOD0(OnNavigationStateChanged, void()); | |
20 MOCK_METHOD1(OnLoadingStateChanged, void(bool loading)); | |
21 MOCK_METHOD1(OnPageLoadingStateChanged, void(bool loading)); | |
22 MOCK_METHOD0(OnContentsDestroyed, void()); | |
23 }; | |
24 | |
25 } // namespace client | |
26 } // namespace blimp | |
27 | |
28 #endif // BLIMP_CLIENT_TEST_CONTENTS_MOCK_BLIMP_CONTENTS_OBSERVER_H_ | |
OLD | NEW |