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

Side by Side Diff: chrome/browser/extensions/external_provider_impl_chromeos_unittest.cc

Issue 12546016: Remove the Extensions URLRequestContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile gdi. Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698