Update V8 to version 4.7.52.
[chromium-blink-merge.git] / chrome / test / base / chrome_unit_test_suite.h
blob5a92bc7e10e6dc23340b8fdc564ac89ddddedadf
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_TEST_BASE_CHROME_UNIT_TEST_SUITE_H_
6 #define CHROME_TEST_BASE_CHROME_UNIT_TEST_SUITE_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "base/files/file_path.h"
11 #include "base/test/test_discardable_memory_allocator.h"
12 #include "chrome/test/base/chrome_test_suite.h"
14 // Test suite for unit tests. Creates additional stub services that are not
15 // needed for browser tests (e.g. a TestingBrowserProcess).
16 class ChromeUnitTestSuite : public ChromeTestSuite {
17 public:
18 ChromeUnitTestSuite(int argc, char** argv);
19 ~ChromeUnitTestSuite() override;
21 // base::TestSuite overrides:
22 void Initialize() override;
23 void Shutdown() override;
25 // These methods allow unit tests which run in the browser_test binary, and so
26 // which don't exercise the initialization in this test suite, to do basic
27 // setup which this class does.
28 static void InitializeProviders();
29 static void InitializeResourceBundle();
31 private:
32 base::TestDiscardableMemoryAllocator discardable_memory_allocator_;
34 DISALLOW_COPY_AND_ASSIGN(ChromeUnitTestSuite);
37 #endif // CHROME_TEST_BASE_CHROME_UNIT_TEST_SUITE_H_