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

Side by Side Diff: extensions/browser/info_map_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 | « extensions/browser/info_map.cc ('k') | extensions/browser/lazy_background_task_queue.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 "base/json/json_file_value_serializer.h" 5 #include "base/json/json_file_value_serializer.h"
6 #include "base/message_loop/message_loop.h" 6 #include "base/message_loop/message_loop.h"
7 #include "base/path_service.h" 7 #include "base/path_service.h"
8 #include "chrome/common/chrome_paths.h" 8 #include "chrome/common/chrome_paths.h"
9 #include "chrome/common/extensions/extension.h"
10 #include "content/public/test/test_browser_thread.h" 9 #include "content/public/test/test_browser_thread.h"
11 #include "extensions/browser/info_map.h" 10 #include "extensions/browser/info_map.h"
11 #include "extensions/common/extension.h"
12 #include "extensions/common/manifest_constants.h" 12 #include "extensions/common/manifest_constants.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 14
15 using content::BrowserThread; 15 using content::BrowserThread;
16 16
17 namespace keys = extensions::manifest_keys; 17 namespace keys = extensions::manifest_keys;
18 18
19 namespace extensions { 19 namespace extensions {
20 20
21 class InfoMapTest : public testing::Test { 21 class InfoMapTest : public testing::Test {
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 "valid_app.json")); 167 "valid_app.json"));
168 info_map->AddExtension(app.get(), base::Time(), false, false); 168 info_map->AddExtension(app.get(), base::Time(), false, false);
169 169
170 EXPECT_FALSE(info_map->AreNotificationsDisabled(app->id())); 170 EXPECT_FALSE(info_map->AreNotificationsDisabled(app->id()));
171 info_map->SetNotificationsDisabled(app->id(), true); 171 info_map->SetNotificationsDisabled(app->id(), true);
172 EXPECT_TRUE(info_map->AreNotificationsDisabled(app->id())); 172 EXPECT_TRUE(info_map->AreNotificationsDisabled(app->id()));
173 info_map->SetNotificationsDisabled(app->id(), false); 173 info_map->SetNotificationsDisabled(app->id(), false);
174 } 174 }
175 175
176 } // namespace extensions 176 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/info_map.cc ('k') | extensions/browser/lazy_background_task_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698