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
#include "opentv.h" | |
#include "assert.h" | |
#include "MyClass.h" | |
/* This method just waits for a quit message and then exits the application */ | |
static void Main_waitToExit(void) | |
{ | |
while (TRUE) | |
{ |
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
#define MY_MACRO(FUNCTION_NAME, FORMAT, ARGS...) FUNCTION_NAME(FORMAT , ##ARGS) |
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
#define CALLONE(FUNCTION, ARGS...) FUNCTION(1 , ##ARGS) | |
CALLONE(add, CALLONE(addOne)); | |
/* expands to */ | |
add(1, CALLONE(addOne)); |
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
#ifndef IMYINTERFACE_H_ | |
#define IMYINTERFACE_H_ | |
#include "OOOCode.h" | |
#define OOOInterface IMyInterface | |
OOOVirtuals | |
OOOVirtual(int, getData); | |
OOOVirtualsEnd | |
#undef OOOInterface |
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
#include "OOOUnitTestDefines.h" | |
#include "MyClass.h" | |
OOOTest(MyClass) | |
{ | |
MyClass * pMyClass = OOOConstruct(MyClass, 5); | |
MyClass * pMyClassCopy = OOOCall(pMyClass, copy); | |
/* Check stuff here */ | |
OOOCheck(OOOCall(pMyClass, getMyField) == 5); |
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
var mongoose = require('./testUtils/mongooseTestWrapper.js'), | |
Greetee; | |
exports.setUp = function(callback) { | |
// reset the schemas to ensure that any changes are picked up by the mongoose singleton | |
mongoose.resetSchemas(); | |
// add the schemas back again | |
Greetee = require('./greetee.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
module.exports = function(grunt) { | |
// Add our custom tasks. | |
// These include: | |
// test - Run unit tests with Mocha (overrides the nodeunit test task) | |
grunt.loadTasks('grunt/tasks'); | |
// Project configuration. | |
grunt.initConfig({ | |
lint: { |
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
module.exports = function(grunt) { | |
grunt.loadNpmTasks('grunt-contrib-watch'); | |
grunt.initConfig({ | |
lint: { | |
files: ['grunt.js', 'src/**/*.js'] | |
}, | |
watch: { | |
scripts: { |
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
var http = require('http'), | |
tls = require('tls'), | |
fs = require('fs'), | |
crypto = require('crypto'); | |
var PORT = 8080, | |
SERVER_KEY = fs.readFileSync('./test/keys/server-key.pem'), | |
SERVER_CERT = fs.readFileSync('./test/keys/server-cert.pem'), | |
CLIENT_KEY = fs.readFileSync('./test/keys/client-key.pem'), | |
CLIENT_CERT = fs.readFileSync('./test/keys/client-cert.pem'); |
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
var http = require('http'); | |
var PORT = 8080; | |
var server = http.createServer(function(request, response) { | |
response.end(); | |
}); | |
server.listen(PORT, function() { | |
console.log('Listening on port ' + PORT); | |
}); |
OlderNewer