OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/files/file_path.h" | 5 #include "base/files/file_path.h" |
6 #include "base/macros.h" | 6 #include "base/macros.h" |
7 #include "base/prefs/pref_service.h" | |
8 #include "chrome/browser/extensions/component_loader.h" | 7 #include "chrome/browser/extensions/component_loader.h" |
9 #include "chrome/browser/extensions/error_console/error_console.h" | 8 #include "chrome/browser/extensions/error_console/error_console.h" |
10 #include "chrome/browser/extensions/extension_browsertest.h" | 9 #include "chrome/browser/extensions/extension_browsertest.h" |
11 #include "chrome/browser/extensions/extension_service.h" | 10 #include "chrome/browser/extensions/extension_service.h" |
12 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
13 #include "chrome/common/chrome_switches.h" | 12 #include "chrome/common/chrome_switches.h" |
14 #include "chrome/common/pref_names.h" | 13 #include "chrome/common/pref_names.h" |
| 14 #include "components/prefs/pref_service.h" |
15 #include "content/public/common/content_switches.h" | 15 #include "content/public/common/content_switches.h" |
16 #include "extensions/common/extension.h" | 16 #include "extensions/common/extension.h" |
17 #include "extensions/test/extension_test_message_listener.h" | 17 #include "extensions/test/extension_test_message_listener.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
19 | 19 |
20 | 20 |
21 namespace extensions { | 21 namespace extensions { |
22 | 22 |
23 static const char kHotwordHelperExtensionId[] = | 23 static const char kHotwordHelperExtensionId[] = |
24 "dnhpdliibojhegemfjheidglijccjfmc"; | 24 "dnhpdliibojhegemfjheidglijccjfmc"; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 ASSERT_TRUE(extension); | 76 ASSERT_TRUE(extension); |
77 const Extension* test_extension = LoadExtension( | 77 const Extension* test_extension = LoadExtension( |
78 test_data_dir_.AppendASCII("hotword")); | 78 test_data_dir_.AppendASCII("hotword")); |
79 ASSERT_TRUE(test_extension); | 79 ASSERT_TRUE(test_extension); |
80 | 80 |
81 ASSERT_TRUE(doneListener.WaitUntilSatisfied()); | 81 ASSERT_TRUE(doneListener.WaitUntilSatisfied()); |
82 ASSERT_TRUE(error_console()->GetErrorsForExtension(extension->id()).empty()); | 82 ASSERT_TRUE(error_console()->GetErrorsForExtension(extension->id()).empty()); |
83 } | 83 } |
84 | 84 |
85 } // namespace extensions | 85 } // namespace extensions |
OLD | NEW |