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

Side by Side Diff: apps/app_shim/extension_app_shim_handler_mac_unittest.cc

Issue 15239002: Move Extension and PermissionsData to extensions/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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
« no previous file with comments | « apps/app_restore_service_browsertest.cc ('k') | apps/launcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "apps/app_shim/extension_app_shim_handler_mac.h" 5 #include "apps/app_shim/extension_app_shim_handler_mac.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "apps/app_shim/app_shim_host_mac.h" 9 #include "apps/app_shim/app_shim_host_mac.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "chrome/browser/chrome_notification_types.h" 11 #include "chrome/browser/chrome_notification_types.h"
12 #include "chrome/common/extensions/extension.h"
13 #include "chrome/test/base/testing_profile.h" 12 #include "chrome/test/base/testing_profile.h"
14 #include "content/public/browser/notification_service.h" 13 #include "content/public/browser/notification_service.h"
14 #include "extensions/common/extension.h"
15 #include "testing/gmock/include/gmock/gmock.h" 15 #include "testing/gmock/include/gmock/gmock.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 17
18 namespace apps { 18 namespace apps {
19 19
20 using extensions::Extension; 20 using extensions::Extension;
21 typedef ShellWindowRegistry::ShellWindowList ShellWindowList; 21 typedef ShellWindowRegistry::ShellWindowList ShellWindowList;
22 22
23 using ::testing::_; 23 using ::testing::_;
24 using ::testing::Invoke; 24 using ::testing::Invoke;
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 .WillRepeatedly(Return(&profile_a_)); 366 .WillRepeatedly(Return(&profile_a_));
367 EXPECT_CALL(*delegate_, LoadProfileAsync(profile_path_a_, _)) 367 EXPECT_CALL(*delegate_, LoadProfileAsync(profile_path_a_, _))
368 .WillOnce(Invoke(delegate_, &MockDelegate::CaptureLoadProfileCallback)); 368 .WillOnce(Invoke(delegate_, &MockDelegate::CaptureLoadProfileCallback));
369 NormalLaunch(&host_aa_); 369 NormalLaunch(&host_aa_);
370 EXPECT_FALSE(handler_->FindHost(&profile_a_, kTestAppIdA)); 370 EXPECT_FALSE(handler_->FindHost(&profile_a_, kTestAppIdA));
371 delegate_->RunLoadProfileCallback(profile_path_a_, &profile_a_); 371 delegate_->RunLoadProfileCallback(profile_path_a_, &profile_a_);
372 EXPECT_TRUE(handler_->FindHost(&profile_a_, kTestAppIdA)); 372 EXPECT_TRUE(handler_->FindHost(&profile_a_, kTestAppIdA));
373 } 373 }
374 374
375 } // namespace apps 375 } // namespace apps
OLDNEW
« no previous file with comments | « apps/app_restore_service_browsertest.cc ('k') | apps/launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698