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/base_paths.h" | 5 #include "base/base_paths.h" |
6 #include "base/file_util.h" | 6 #include "base/file_util.h" |
7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
8 #include "chrome/browser/extensions/component_loader.h" | 8 #include "chrome/browser/extensions/component_loader.h" |
9 #include "chrome/browser/extensions/extension_apitest.h" | 9 #include "chrome/browser/extensions/extension_apitest.h" |
10 #include "chrome/browser/extensions/extension_service.h" | 10 #include "chrome/browser/extensions/extension_service.h" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 | 78 |
79 if (!catcher.GetNextResult()) | 79 if (!catcher.GetNextResult()) |
80 FAIL() << catcher.message(); | 80 FAIL() << catcher.message(); |
81 } | 81 } |
82 }; | 82 }; |
83 | 83 |
84 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, Basic) { | 84 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, Basic) { |
85 RunTestsInFile("basic_test.js", false); | 85 RunTestsInFile("basic_test.js", false); |
86 } | 86 } |
87 | 87 |
88 // TODO(raymes): This fails with component builds on linux because the plugin | 88 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, BasicPlugin) { |
89 // plugin crashes due to something related to how the plugin DLL is | |
90 // compiled/linked. crbug.com/386436. | |
91 #if defined(LINUX) && defined(COMPONENT_BUILD) | |
92 #define MAYBE_BasicPlugin DISABLED_BasicPlugin | |
93 #else | |
94 #define MAYBE_BasicPlugin BasicPlugin | |
95 #endif | |
96 | |
97 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, MAYBE_BasicPlugin) { | |
98 RunTestsInFile("basic_plugin_test.js", true); | 89 RunTestsInFile("basic_plugin_test.js", true); |
99 } | 90 } |
100 | 91 |
101 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, Viewport) { | 92 IN_PROC_BROWSER_TEST_F(PDFExtensionTest, Viewport) { |
102 RunTestsInFile("viewport_test.js", false); | 93 RunTestsInFile("viewport_test.js", false); |
103 } | 94 } |
OLD | NEW |