| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/extensions/external_provider_impl.h" | 5 #include "chrome/browser/extensions/external_provider_impl.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/test/scoped_path_override.h" | 9 #include "base/test/scoped_path_override.h" |
| 10 #include "chrome/browser/chrome_notification_types.h" | 10 #include "chrome/browser/chrome_notification_types.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 72 |
| 73 // App mode, no external app should be installed. | 73 // App mode, no external app should be installed. |
| 74 TEST_F(ExternalProviderImplTest, AppMode) { | 74 TEST_F(ExternalProviderImplTest, AppMode) { |
| 75 CommandLine* command = CommandLine::ForCurrentProcess(); | 75 CommandLine* command = CommandLine::ForCurrentProcess(); |
| 76 command->AppendSwitchASCII(switches::kForceAppMode, std::string()); | 76 command->AppendSwitchASCII(switches::kForceAppMode, std::string()); |
| 77 command->AppendSwitchASCII(switches::kAppId, std::string("app_id")); | 77 command->AppendSwitchASCII(switches::kAppId, std::string("app_id")); |
| 78 | 78 |
| 79 InitServiceWithExternalProviders(); | 79 InitServiceWithExternalProviders(); |
| 80 | 80 |
| 81 service_->CheckForExternalUpdates(); | 81 service_->CheckForExternalUpdates(); |
| 82 loop_.RunUntilIdle(); | 82 base::RunLoop().RunUntilIdle(); |
| 83 | 83 |
| 84 EXPECT_FALSE(service_->GetInstalledExtension(kExternalAppId)); | 84 EXPECT_FALSE(service_->GetInstalledExtension(kExternalAppId)); |
| 85 } | 85 } |
| 86 | 86 |
| 87 } // namespace extensions | 87 } // namespace extensions |
| OLD | NEW |