Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Unified Diff: content/public/test/ppapi_test_utils.cc

Issue 1088763002: Plugin Power Saver: Add comprehensive browser tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@0260-plugins-overhaul-prerender-tests
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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));

Powered by Google App Engine
This is Rietveld 408576698