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

Unified Diff: ios/public/provider/chrome/browser/sessions/test_live_tab_context_provider.h

Issue 2505953002: [ios] Adds test provider implementations. (Closed)
Patch Set: Fix build file. Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: ios/public/provider/chrome/browser/sessions/test_live_tab_context_provider.h
diff --git a/ios/public/provider/chrome/browser/sessions/test_live_tab_context_provider.h b/ios/public/provider/chrome/browser/sessions/test_live_tab_context_provider.h
new file mode 100644
index 0000000000000000000000000000000000000000..d8fe614de965590ecb080209721cb56467cab92d
--- /dev/null
+++ b/ios/public/provider/chrome/browser/sessions/test_live_tab_context_provider.h
@@ -0,0 +1,27 @@
+// 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.
+
+#ifndef IOS_PUBLIC_PROVIDER_CHROME_BROWSER_SESSIONS_TEST_LIVE_TAB_CONTEXT_PROVIDER_H_
+#define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_SESSIONS_TEST_LIVE_TAB_CONTEXT_PROVIDER_H_
+
+#include "base/macros.h"
+#include "ios/public/provider/chrome/browser/sessions/live_tab_context_provider.h"
+
+class TestLiveTabContextProvider : public ios::LiveTabContextProvider {
+ public:
+ TestLiveTabContextProvider() {}
+ ~TestLiveTabContextProvider() override {}
+
+ // LiveTabContextProvider.
+ sessions::LiveTabContext* Create(
+ ios::ChromeBrowserState* browser_state) override;
+ sessions::LiveTabContext* FindContextWithID(int32_t desired_id) override;
+ sessions::LiveTabContext* FindContextForTab(
+ const sessions::LiveTab* tab) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(TestLiveTabContextProvider);
+};
+
+#endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_SESSIONS_TEST_LIVE_TAB_CONTEXT_PROVIDER_H_

Powered by Google App Engine
This is Rietveld 408576698