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

Unified Diff: ios/public/test/test_chrome_browser_provider.mm

Issue 809333003: Upstream //ios/chrome/browser/translate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: ios/public/test/test_chrome_browser_provider.mm
diff --git a/ios/public/test/test_chrome_browser_provider.mm b/ios/public/test/test_chrome_browser_provider.mm
new file mode 100644
index 0000000000000000000000000000000000000000..afcf24ca596e548470fae0a27f21833056610942
--- /dev/null
+++ b/ios/public/test/test_chrome_browser_provider.mm
@@ -0,0 +1,38 @@
+// Copyright 2013 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 "ios/public/test/test_chrome_browser_provider.h"
+
+#include "base/logging.h"
+#include "ios/public/test/fake_string_provider.h"
+
+namespace {
+const char kUIScheme[] = "uischeme";
+}
+
+namespace ios {
+
+TestChromeBrowserProvider::TestChromeBrowserProvider()
+ : string_provider_(new FakeStringProvider) {
+}
+
+TestChromeBrowserProvider::~TestChromeBrowserProvider() {
+}
+
+// static
+TestChromeBrowserProvider* TestChromeBrowserProvider::GetTestProvider() {
+ ChromeBrowserProvider* provider = GetChromeBrowserProvider();
+ DCHECK(provider);
+ return static_cast<TestChromeBrowserProvider*>(provider);
+}
+
+StringProvider* TestChromeBrowserProvider::GetStringProvider() {
+ return string_provider_.get();
+}
+
+const char* TestChromeBrowserProvider::GetChromeUIScheme() {
+ return kUIScheme;
+}
+
+} // namespace ios

Powered by Google App Engine
This is Rietveld 408576698