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

Unified Diff: ppapi/tests/testing_instance.cc

Issue 5743002: Add a separate cookie for the start of a PPAPI test to help reduce test... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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
« no previous file with comments | « chrome/test/ui/ppapi_uitest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/testing_instance.cc
===================================================================
--- ppapi/tests/testing_instance.cc (revision 68649)
+++ ppapi/tests/testing_instance.cc (working copy)
@@ -93,6 +93,8 @@
}
void TestingInstance::ExecuteTests(int32_t unused) {
+ SetCookie("STARTUP_COOKIE", "STARTED");
+
// Clear the console.
// This does: window.document.getElementById("console").innerHTML = "";
pp::Var window = GetWindowObject();
@@ -168,7 +170,7 @@
}
void TestingInstance::SetCookie(const std::string& name,
- const std::string& value) {
+ const std::string& value) {
// window.document.cookie = "<name>=<value>; path=/"
std::string cookie_string = name + "=" + value + "; path=/";
pp::Var document = GetWindowObject().GetProperty("document");
« no previous file with comments | « chrome/test/ui/ppapi_uitest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698