| 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 87165f5371caefdbc01636923630ffa9113aa967..304e3436f7aeddf3214f2dbecb65bc24212230c0 100644
|
| --- a/content/public/test/ppapi_test_utils.cc
|
| +++ b/content/public/test/ppapi_test_utils.cc
|
| @@ -10,6 +10,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 {
|
| @@ -33,13 +34,8 @@ void RegisterTestLibraryWithExtraParameters(
|
| 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));
|
|
|