OLD | NEW |
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 <stddef.h> | 5 #include <stddef.h> |
6 | 6 |
| 7 #include <memory> |
| 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
9 #include "base/command_line.h" | 11 #include "base/command_line.h" |
10 #include "base/memory/scoped_ptr.h" | |
11 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
12 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
13 #include "base/test/thread_test_helper.h" | 14 #include "base/test/thread_test_helper.h" |
14 #include "chrome/browser/extensions/extension_apitest.h" | 15 #include "chrome/browser/extensions/extension_apitest.h" |
15 #include "chrome/browser/extensions/test_extension_dir.h" | 16 #include "chrome/browser/extensions/test_extension_dir.h" |
16 #include "chrome/browser/ui/browser.h" | 17 #include "chrome/browser/ui/browser.h" |
17 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 18 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
18 #include "chrome/test/base/ui_test_utils.h" | 19 #include "chrome/test/base/ui_test_utils.h" |
19 #include "content/public/browser/browser_thread.h" | 20 #include "content/public/browser/browser_thread.h" |
20 #include "extensions/browser/api/declarative/rules_registry_service.h" | 21 #include "extensions/browser/api/declarative/rules_registry_service.h" |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 | 249 |
249 // 2. Uninstall the extension. Rules are gone and preferences should be empty. | 250 // 2. Uninstall the extension. Rules are gone and preferences should be empty. |
250 UninstallExtension(extension_id); | 251 UninstallExtension(extension_id); |
251 ui_test_utils::NavigateToURL(browser(), GURL(kArbitraryUrl)); | 252 ui_test_utils::NavigateToURL(browser(), GURL(kArbitraryUrl)); |
252 EXPECT_NE(kTestTitle, GetTitle()); | 253 EXPECT_NE(kTestTitle, GetTitle()); |
253 EXPECT_EQ(0u, NumberOfRegisteredRules(extension_id)); | 254 EXPECT_EQ(0u, NumberOfRegisteredRules(extension_id)); |
254 EXPECT_FALSE(extension_prefs->HasPrefForExtension(extension_id)); | 255 EXPECT_FALSE(extension_prefs->HasPrefForExtension(extension_id)); |
255 } | 256 } |
256 | 257 |
257 } // namespace extensions | 258 } // namespace extensions |
OLD | NEW |