<commit_before>// Copyright (c) 2009 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 <Cocoa/Cocoa.h>

#include "base/scoped_nsobject.h"
#import "chrome/browser/cocoa/task_manager_mac.h"
#import "chrome/browser/cocoa/cocoa_test_helper.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/platform_test.h"

namespace {

class TaskManagerWindowControllerTest : public PlatformTest {
 public:
  TaskManagerWindowControllerTest() {
    controller_.reset([[TaskManagerWindowController alloc] init]);
  }

  scoped_nsobject<TaskManagerWindowController> controller_;
  CocoaTestHelper cocoa_helper_;  // Inits Cocoa, creates window, etc...
};

// Test creation, to ensure nothing leaks or crashes
TEST_F(TaskManagerWindowControllerTest, Init) {
}

// TODO(thakis): Add tests for more methods as they become implemented
// (TaskManager::Show() etc).

}  // namespace
<commit_msg>Move TaskManagerMacUnitTest over to Cocoatest.<commit_after>// Copyright (c) 2009 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 <Cocoa/Cocoa.h>

#include "base/scoped_nsobject.h"
#import "chrome/browser/cocoa/task_manager_mac.h"
#import "chrome/browser/cocoa/cocoa_test_helper.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/platform_test.h"

namespace {

class TaskManagerWindowControllerTest : public CocoaTest {
 public:
  virtual void SetUp() {
    CocoaTest::SetUp();
    controller_ = [[TaskManagerWindowController alloc] init];
  }

  virtual void TearDown() {
    [controller_ close];
    CocoaTest::TearDown();
  }

  TaskManagerWindowController *controller_;
};

// Test creation, to ensure nothing leaks or crashes
TEST_F(TaskManagerWindowControllerTest, Init) {
}

// TODO(thakis): Add tests for more methods as they become implemented
// (TaskManager::Show() etc).

}  // namespace

{'fraction_non_alphanumeric': 0.10852329038652131, 'fraction_numerical': 0.003964321110009911, 'mean_word_length': 4.752136752136752, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1555684', 'n_tokens_mistral': 647, 'n_tokens_neox': 619, 'n_words': 173}