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

Unified Diff: chrome/test/nacl/nacl_test.h

Issue 7831053: Move NaCl tests out of chrome/test (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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
« no previous file with comments | « chrome/test/nacl/nacl_sandbox_test.cc ('k') | chrome/test/nacl/nacl_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/nacl/nacl_test.h
===================================================================
--- chrome/test/nacl/nacl_test.h (revision 100205)
+++ chrome/test/nacl/nacl_test.h (working copy)
@@ -1,63 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_TEST_NACL_NACL_TEST_H_
-#define CHROME_TEST_NACL_NACL_TEST_H_
-#pragma once
-
-#include "chrome/test/base/layout_test_http_server.h"
-#include "chrome/test/ui/ui_test.h"
-
-class FilePath;
-
-// This class implements integration tests for Native Client.
-// For security reasons, Native Client currently loads modules from port 5103
-// only, therefore running the test currently requires starting
-// a local webserver on this port.
-// This limitation will be removed in the future.
-// Additional functionality used in this test is implemented in html and JS
-// files that are part of NaCl tree.
-class NaClTest : public UITest {
- protected:
- NaClTest();
- virtual ~NaClTest();
-
- // Get the path to the native_client/tests directory, the root of testing
- // data.
- static FilePath GetTestRootDir();
-
- // Waits for a test case (identified by path) to finish.
- void WaitForFinish(const FilePath& filename, int wait_time);
-
- // Navigate the browser to a given test path, and wait for the test to
- // complete.
- void RunTest(const FilePath& filename, int timeout);
-
- // Similar to RunTest, but relies on the html file to use the "nexes"
- // property to specify the URLs for all the nexes required to run the test
- // on different architectures.
- void RunMultiarchTest(const FilePath& filename, int timeout);
-
- // gtest test setup overrides.
- virtual void SetUp();
- virtual void TearDown();
-
- // Construct a URL for a test file on our local webserver.
- GURL GetTestUrl(const FilePath& filename);
-
- private:
- // Compute the path to the test binaries (prebuilt NaCL executables).
- FilePath GetTestBinariesDir();
- bool use_x64_nexes_;
-
- // This test uses an HTML file that lists nexes for different architectures
- // in the "nexes" property
- bool multiarch_test_;
-
- LayoutTestHttpServer http_server_;
-
- DISALLOW_COPY_AND_ASSIGN(NaClTest);
-};
-
-#endif // CHROME_TEST_NACL_NACL_TEST_H_
« no previous file with comments | « chrome/test/nacl/nacl_sandbox_test.cc ('k') | chrome/test/nacl/nacl_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698