blob: 9ab00ba68998e9777260f4cf29a9969ac7d97c6d [file] [log] [blame]
// Copyright 2018 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.
import 'dart:async';
import 'dart:developer';
import 'dart:io';
// Allow a test driver to communicate with this app through the controller.
final Controller controller = Controller();
void main() {
print('starting logging app');
log('starting logging app');
// Don't exit until it's indicated we should by the controller.
Timer(const Duration(days: 1), () {});
}
class Controller {
int count = 0;
void emitLog() {
count++;
print('emitLog called');
log('emit log $count', name: 'logging');
}
void shutdown() {
print('stopping app');
log('stopping app');
exit(0);
}
}