forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG=none TEST=remoting_unittests --gtest_filter=DebugLogUnitTest.* Review URL: http://codereview.chromium.org/8599010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112252 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
garykac@chromium.org
committed
Nov 30, 2011
1 parent
1b99ff1
commit 37794d0
Showing
10 changed files
with
223 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# 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. | ||
|
||
# This file defines rules that allow you to include JavaScript tests in | ||
# your unittests target. | ||
|
||
# To add JS unittests to an existing unittest target, first include | ||
# 'js_unittest_vars.gypi' at the top of your GYP file to define the required | ||
# variables: | ||
# | ||
# 'includes': [ | ||
# '<(DEPTH)/chrome/js_unittest_vars.gypi', | ||
# ], | ||
# | ||
# Then include this rule file in each of your unittest targets: | ||
# | ||
# { | ||
# 'target_name': 'my_unittests', | ||
# ... | ||
# 'includes': [ | ||
# '<(DEPTH)/chrome/js_unittest_rules.gypi', | ||
# ], | ||
# } | ||
# | ||
# Note that when you run your TestSuite, you'll need to call | ||
# chrome::RegisterPathProvider(). These path providers are required by | ||
# src/chrome/test/base/v8_unit_test.cc to setup and run the tests. | ||
# | ||
# See src/chrome/test/base/run_all_remoting_unittests.cc for an example. | ||
|
||
{ | ||
'rules': [ | ||
{ | ||
'rule_name': 'copyjs', | ||
'extension': 'js', | ||
'msvs_external_rule': 1, | ||
'inputs': [ | ||
'<(DEPTH)/build/cp.py', | ||
], | ||
'outputs': [ | ||
'<(PRODUCT_DIR)/test_data/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).<(_extension)', | ||
], | ||
'action': [ | ||
'python', | ||
'<@(_inputs)', | ||
'<(RULE_INPUT_PATH)', | ||
'<@(_outputs)', | ||
], | ||
}, | ||
{ | ||
'rule_name': 'js2unit', | ||
'extension': 'gtestjs', | ||
'msvs_external_rule': 1, | ||
'inputs': [ | ||
'<(gypv8sh)', | ||
'<(PRODUCT_DIR)/v8_shell<(EXECUTABLE_SUFFIX)', | ||
'<(mock_js)', | ||
'<(test_api_js)', | ||
'<(js2gtest)', | ||
], | ||
'outputs': [ | ||
'<(INTERMEDIATE_DIR)/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT)-gen.cc', | ||
'<(PRODUCT_DIR)/test_data/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).<(_extension)', | ||
], | ||
'process_outputs_as_sources': 1, | ||
'action': [ | ||
'python', | ||
'<@(_inputs)', | ||
'unit', | ||
'<(RULE_INPUT_PATH)', | ||
'chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).<(_extension)', | ||
'<@(_outputs)', | ||
], | ||
}, | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# 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. | ||
|
||
{ | ||
'variables' : { | ||
'gypv8sh': '<(DEPTH)/tools/gypv8sh.py', | ||
'js2gtest': '<(DEPTH)/chrome/test/base/js2gtest.js', | ||
'mock_js': '<(DEPTH)/chrome/third_party/mock4js/mock4js.js', | ||
'test_api_js': '<(DEPTH)/chrome/test/data/webui/test_api.js', | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// 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. | ||
|
||
// A basic testrunner that supports JavaScript unittests. | ||
// This lives in src/chrome/test/base so that it can include chrome_paths.h | ||
// (required for JS unittests) without updating the DEPS file for each | ||
// subproject. | ||
|
||
|
||
#include "base/test/test_suite.h" | ||
#include "chrome/common/chrome_paths.h" | ||
|
||
int main(int argc, char** argv) { | ||
base::TestSuite test_suite(argc, argv); | ||
|
||
// This is required for the JavaScript unittests. | ||
chrome::RegisterPathProvider(); | ||
|
||
return test_suite.Run(); | ||
} |
Oops, something went wrong.