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

Side by Side Diff: chrome/browser/extensions/api/idle/idle_api_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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/api/idle/idle_api.h" 5 #include "chrome/browser/extensions/api/idle/idle_api.h"
6 6
7 #include <limits.h> 7 #include <limits.h>
8 #include <string> 8 #include <string>
9 9
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
11 #include "chrome/browser/chrome_notification_types.h" 11 #include "chrome/browser/chrome_notification_types.h"
12 #include "chrome/browser/extensions/api/idle/idle_api_constants.h" 12 #include "chrome/browser/extensions/api/idle/idle_api_constants.h"
13 #include "chrome/browser/extensions/api/idle/idle_manager.h" 13 #include "chrome/browser/extensions/api/idle/idle_manager.h"
14 #include "chrome/browser/extensions/api/idle/idle_manager_factory.h" 14 #include "chrome/browser/extensions/api/idle/idle_manager_factory.h"
15 #include "chrome/browser/extensions/event_router.h" 15 #include "chrome/browser/extensions/event_router.h"
16 #include "chrome/browser/extensions/extension_function_test_utils.h" 16 #include "chrome/browser/extensions/extension_function_test_utils.h"
17 #include "chrome/common/extensions/api/idle.h" 17 #include "chrome/common/extensions/api/idle.h"
18 #include "chrome/common/extensions/extension.h"
19 #include "chrome/test/base/browser_with_test_window_test.h" 18 #include "chrome/test/base/browser_with_test_window_test.h"
20 #include "content/public/browser/notification_details.h" 19 #include "content/public/browser/notification_details.h"
21 #include "content/public/browser/notification_source.h" 20 #include "content/public/browser/notification_source.h"
21 #include "extensions/common/extension.h"
22 #include "testing/gmock/include/gmock/gmock.h" 22 #include "testing/gmock/include/gmock/gmock.h"
23 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
24 24
25 using ::testing::_; 25 using ::testing::_;
26 26
27 namespace utils = extension_function_test_utils; 27 namespace utils = extension_function_test_utils;
28 namespace idle = extensions::api::idle; 28 namespace idle = extensions::api::idle;
29 29
30 namespace extensions { 30 namespace extensions {
31 31
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 ScopedListen listen(idle_manager_, extension_->id()); 558 ScopedListen listen(idle_manager_, extension_->id());
559 UnloadedExtensionInfo details(extension_.get(), 559 UnloadedExtensionInfo details(extension_.get(),
560 UnloadedExtensionInfo::REASON_UNINSTALL); 560 UnloadedExtensionInfo::REASON_UNINSTALL);
561 idle_manager_->Observe( 561 idle_manager_->Observe(
562 chrome::NOTIFICATION_EXTENSION_UNLOADED, 562 chrome::NOTIFICATION_EXTENSION_UNLOADED,
563 content::Source<Profile>(browser()->profile()), 563 content::Source<Profile>(browser()->profile()),
564 content::Details<UnloadedExtensionInfo>(&details)); 564 content::Details<UnloadedExtensionInfo>(&details));
565 } 565 }
566 566
567 } // namespace extensions 567 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/identity/identity_api.cc ('k') | chrome/browser/extensions/api/idle/idle_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698