Add ICU message format support
[chromium-blink-merge.git] / ios / public / test / test_chrome_provider_initializer.cc
blobd4d9424c7c044b9e96ca9ea5c4cc41f29f4e3084
1 // Copyright 2013 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.
5 #include "ios/public/test/test_chrome_provider_initializer.h"
7 #include "ios/public/test/test_chrome_browser_provider.h"
8 #include "testing/gtest/include/gtest/gtest.h"
10 namespace ios {
12 TestChromeProviderInitializer::TestChromeProviderInitializer() {
13 chrome_browser_provider_.reset(new TestChromeBrowserProvider());
14 ios::SetChromeBrowserProvider(chrome_browser_provider_.get());
17 TestChromeProviderInitializer::~TestChromeProviderInitializer() {
18 EXPECT_EQ(chrome_browser_provider_.get(), ios::GetChromeBrowserProvider());
19 ios::SetChromeBrowserProvider(nullptr);
22 } // namespace ios