| 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 "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 Loading... |
| 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 |
| OLD | NEW |