Chromium Code Reviews| Index: blimp/client/feature/mock_navigation_feature.cc |
| diff --git a/blimp/client/feature/mock_navigation_feature.cc b/blimp/client/feature/mock_navigation_feature.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..3be1e6cacc4681da9fdb6ad63ef489ce34e7434e |
| --- /dev/null |
| +++ b/blimp/client/feature/mock_navigation_feature.cc |
| @@ -0,0 +1,23 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "blimp/client/feature/mock_navigation_feature.h" |
| + |
| +namespace blimp { |
| +namespace client { |
| + |
| +const int kDummyTabId = 0; |
| + |
| +MockNavigationFeature::MockNavigationFeature() {} |
| + |
| +MockNavigationFeature::~MockNavigationFeature() {} |
| + |
| +void MockNavigationFeature::NavigateToUrlText(int tab_id, |
| + const std::string& url_text) { |
| + NavigationFeatureDelegate* delegate = FindDelegate(kDummyTabId); |
| + delegate->OnUrlChanged(kDummyTabId, GURL(url_text)); |
|
David Trainor- moved to gerrit
2016/07/25 15:57:32
Why do we need kDummyTabId if we're passing tab_id
shaktisahu
2016/07/26 01:25:27
Done.
|
| +} |
| + |
| +} // namespace client |
| +} // namespace blimp |