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/path_service.h" | |
7 #include "base/prefs/pref_service.h" | 6 #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/pref_names.h" | 12 #include "chrome/common/pref_names.h" |
14 #include "chrome/test/base/ui_test_utils.h" | 13 #include "chrome/test/base/ui_test_utils.h" |
15 #include "content/public/common/content_switches.h" | 14 #include "content/public/common/content_switches.h" |
16 #include "extensions/common/extension.h" | 15 #include "extensions/common/extension.h" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 ASSERT_TRUE(extension); | 77 ASSERT_TRUE(extension); |
79 const Extension* test_extension = LoadExtension( | 78 const Extension* test_extension = LoadExtension( |
80 test_data_dir_.AppendASCII("hotword")); | 79 test_data_dir_.AppendASCII("hotword")); |
81 ASSERT_TRUE(test_extension); | 80 ASSERT_TRUE(test_extension); |
82 | 81 |
83 ASSERT_TRUE(doneListener.WaitUntilSatisfied()); | 82 ASSERT_TRUE(doneListener.WaitUntilSatisfied()); |
84 ASSERT_TRUE(error_console()->GetErrorsForExtension(extension->id()).empty()); | 83 ASSERT_TRUE(error_console()->GetErrorsForExtension(extension->id()).empty()); |
85 } | 84 } |
86 | 85 |
87 } // namespace extensions | 86 } // namespace extensions |
OLD | NEW |