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

Side by Side Diff: chrome/test/ui/npapi_uitest.cc

Issue 459003: Don't set referrers on outgoing plugin requests if the load_manually flag is ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 // windows headers 5 // windows headers
6 #include <windows.h> 6 #include <windows.h>
7 #include <shellapi.h> 7 #include <shellapi.h>
8 #include <shlobj.h> 8 #include <shlobj.h>
9 #include <comutil.h> 9 #include <comutil.h>
10 10
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 // exception. Should be run for in and out of process plugins, but 400 // exception. Should be run for in and out of process plugins, but
401 // the more interesting case is out of process, where we must route 401 // the more interesting case is out of process, where we must route
402 // the exception to the correct renderer. 402 // the exception to the correct renderer.
403 TEST_F(NPAPITester, NPObjectSetException) { 403 TEST_F(NPAPITester, NPObjectSetException) {
404 GURL url = GetTestUrl(L"npapi", L"npobject_set_exception.html"); 404 GURL url = GetTestUrl(L"npapi", L"npobject_set_exception.html");
405 NavigateToURL(url); 405 NavigateToURL(url);
406 WaitForFinish("npobject_set_exception", "1", url, 406 WaitForFinish("npobject_set_exception", "1", url,
407 kTestCompleteCookie, kTestCompleteSuccess, 407 kTestCompleteCookie, kTestCompleteSuccess,
408 kShortWaitTimeout); 408 kShortWaitTimeout);
409 } 409 }
410
411 TEST_F(NPAPIVisiblePluginTester, PluginReferrerTest) {
412 if (UITest::in_process_renderer())
413 return;
414
415 GURL url(URLRequestMockHTTPJob::GetMockUrl(
416 FilePath(FILE_PATH_LITERAL(
417 "npapi/plugin_url_request_referrer_test.html"))));
418
419 NavigateToURL(url);
420
421 WaitForFinish("plugin_referrer_test", "1", url, kTestCompleteCookie,
422 kTestCompleteSuccess, kShortWaitTimeout);
423 }
424
OLDNEW
« no previous file with comments | « chrome/test/data/npapi/plugin_url_request_referrer_test.html ('k') | webkit/glue/plugins/test/plugin_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698