Index: content/public/test/ppapi_test_utils.cc |
diff --git a/content/public/test/ppapi_test_utils.cc b/content/public/test/ppapi_test_utils.cc |
index ab52ceca4ca40ac27c368842135737d7783bed92..6f9453017d5922ac24954dcb81a6d0f2c0e356db 100644 |
--- a/content/public/test/ppapi_test_utils.cc |
+++ b/content/public/test/ppapi_test_utils.cc |
@@ -9,6 +9,7 @@ |
#include "base/macros.h" |
#include "base/path_service.h" |
#include "content/public/common/content_switches.h" |
+#include "ppapi/shared_impl/ppapi_constants.h" |
#include "testing/gtest/include/gtest/gtest.h" |
namespace ppapi { |
@@ -32,13 +33,8 @@ void RegisterTestPluginWithExtraParameters( |
base::FilePath plugin_dir; |
EXPECT_TRUE(PathService::Get(base::DIR_MODULE, &plugin_dir)); |
-#if defined(OS_WIN) |
- base::FilePath plugin_path = plugin_dir.Append(L"ppapi_tests.dll"); |
-#elif defined(OS_MACOSX) |
- base::FilePath plugin_path = plugin_dir.Append("ppapi_tests.plugin"); |
-#elif defined(OS_POSIX) |
- base::FilePath plugin_path = plugin_dir.Append("libppapi_tests.so"); |
-#endif |
+ base::FilePath plugin_path = |
+ plugin_dir.AppendASCII(ppapi::kPpapiTestLibraryName); |
// Append the switch to register the pepper plugin. |
EXPECT_TRUE(base::PathExists(plugin_path)); |