From d0b28895943cb6ac3a37920268ac93347b81b1c9 Mon Sep 17 00:00:00 2001 From: "dpolukhin@chromium.org" Date: Wed, 5 Mar 2014 18:56:31 +0000 Subject: Apply OEM default app from customization manifest BUG=343589 TEST=unit_test + manual Review URL: https://codereview.chromium.org/184873003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@255107 0039d316-1c4b-4281-b951-d872f2087c98 --- .../extensions/external_provider_impl_chromeos_unittest.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'chrome/browser/extensions/external_provider_impl_chromeos_unittest.cc') diff --git a/chrome/browser/extensions/external_provider_impl_chromeos_unittest.cc b/chrome/browser/extensions/external_provider_impl_chromeos_unittest.cc index 0f3a508..6216669 100644 --- a/chrome/browser/extensions/external_provider_impl_chromeos_unittest.cc +++ b/chrome/browser/extensions/external_provider_impl_chromeos_unittest.cc @@ -12,8 +12,15 @@ #include "chrome/common/chrome_paths.h" #include "chrome/common/chrome_switches.h" #include "chrome/test/base/testing_profile.h" +#include "chromeos/system/mock_statistics_provider.h" +#include "chromeos/system/statistics_provider.h" #include "content/public/browser/notification_service.h" #include "content/public/test/test_utils.h" +#include "testing/gmock/include/gmock/gmock.h" + +using ::testing::_; +using ::testing::NotNull; +using ::testing::Return; namespace extensions { @@ -48,10 +55,16 @@ class ExternalProviderImplChromeOSTest : public ExtensionServiceTestBase { external_externsions_overrides_.reset( new base::ScopedPathOverride(chrome::DIR_EXTERNAL_EXTENSIONS, data_dir_.Append("external"))); + + chromeos::system::StatisticsProvider::SetTestProvider( + &mock_statistics_provider_); + EXPECT_CALL(mock_statistics_provider_, GetMachineStatistic(_, NotNull())) + .WillRepeatedly(Return(false)); } private: scoped_ptr external_externsions_overrides_; + chromeos::system::MockStatisticsProvider mock_statistics_provider_; DISALLOW_COPY_AND_ASSIGN(ExternalProviderImplChromeOSTest); }; -- cgit v1.1