1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_TEST_NACL_PNACL_HEADER_TEST_H_
6 #define CHROME_TEST_NACL_PNACL_HEADER_TEST_H_
8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/test/base/in_process_browser_test.h"
17 namespace test_server
{
23 class PnaclHeaderTest
: public InProcessBrowserTest
{
26 virtual ~PnaclHeaderTest();
28 // Run a simple test that checks that the NaCl plugin sends the right
29 // headers when doing |expected_noncors| same origin pexe load requests
30 // and |expected_cors| cross origin pexe load requests.
31 void RunLoadTest(const std::string
& url
,
38 scoped_ptr
<net::test_server::HttpResponse
> WatchForPexeFetch(
39 const net::test_server::HttpRequest
& request
);
43 DISALLOW_COPY_AND_ASSIGN(PnaclHeaderTest
);
46 #endif // CHROME_TEST_NACL_PNACL_HEADER_TEST_H_