/external/chromium_org/content/renderer/input/ |
D | input_handler_proxy_unittest.cc | 204 class InputHandlerProxyTest : public testing::Test { 221 testing::Mock::VerifyAndClearExpectations(&mock_input_handler_); \ 222 testing::Mock::VerifyAndClearExpectations(&mock_client_); \ 232 EXPECT_CALL(mock_input_handler_, ScrollBegin(testing::_, testing::_)) in StartFling() 233 .WillOnce(testing::Return(cc::InputHandler::ScrollStarted)); in StartFling() 242 .WillOnce(testing::Return(cc::InputHandler::ScrollStarted)); in StartFling() 263 testing::StrictMock<MockInputHandler> mock_input_handler_; 265 testing::StrictMock<MockInputHandlerProxyClient> mock_client_; 278 testing::Mock::VerifyAndClearExpectations(&mock_client_); in TEST_F() 288 testing::Mock::VerifyAndClearExpectations(&mock_client_); in TEST_F() [all …]
|
/external/chromium_org/components/content_settings/core/common/ |
D | content_settings_pattern_parser_unittest.cc | 31 ::testing::StrictMock<MockBuilder> builder; in TEST() 36 ::testing::Return(&builder)); in TEST() 38 ::testing::Return(&builder)); in TEST() 40 ::testing::Return(&builder)); in TEST() 42 ::testing::Mock::VerifyAndClear(&builder); in TEST() 45 ::testing::Return(&builder)); in TEST() 47 ::testing::Return(&builder)); in TEST() 49 ::testing::Return(&builder)); in TEST() 52 ::testing::Mock::VerifyAndClear(&builder); in TEST() 55 ::testing::Return(&builder)); in TEST() [all …]
|
/external/protobuf/gtest/include/gtest/ |
D | gtest-spi.h | 40 namespace testing { 144 ::testing::TestPartResultArray gtest_failures;\ 145 ::testing::internal::SingleFailureChecker gtest_checker(\ 146 >est_failures, ::testing::TestPartResult::kFatalFailure, (substr));\ 148 ::testing::ScopedFakeTestPartResultReporter gtest_reporter(\ 149 ::testing::ScopedFakeTestPartResultReporter:: \ 153 } while (::testing::internal::AlwaysFalse()) 161 ::testing::TestPartResultArray gtest_failures;\ 162 ::testing::internal::SingleFailureChecker gtest_checker(\ 163 >est_failures, ::testing::TestPartResult::kFatalFailure, (substr));\ [all …]
|
/external/chromium_org/extensions/browser/api/bluetooth/ |
D | bluetooth_apitest.cc | 55 EXPECT_CALL(*mock_adapter_, RemoveObserver(testing::_)); in TearDownOnMainThread() 60 mock_adapter_ = new testing::StrictMock<MockBluetoothAdapter>(); in SetUpMockAdapter() 63 device1_.reset(new testing::NiceMock<MockBluetoothDevice>( in SetUpMockAdapter() 66 device2_.reset(new testing::NiceMock<MockBluetoothDevice>( in SetUpMockAdapter() 69 device3_.reset(new testing::NiceMock<MockBluetoothDevice>( in SetUpMockAdapter() 93 testing::StrictMock<MockBluetoothAdapter>* mock_adapter_; 94 scoped_ptr<testing::NiceMock<MockBluetoothDiscoverySession> > mock_session_; 95 scoped_ptr<testing::NiceMock<MockBluetoothDevice> > device1_; 96 scoped_ptr<testing::NiceMock<MockBluetoothDevice> > device2_; 97 scoped_ptr<testing::NiceMock<MockBluetoothDevice> > device3_; [all …]
|
/external/mesa3d/src/gtest/include/gtest/ |
D | gtest-spi.h | 40 namespace testing { 144 ::testing::TestPartResultArray gtest_failures;\ 145 ::testing::internal::SingleFailureChecker gtest_checker(\ 146 >est_failures, ::testing::TestPartResult::kFatalFailure, (substr));\ 148 ::testing::ScopedFakeTestPartResultReporter gtest_reporter(\ 149 ::testing::ScopedFakeTestPartResultReporter:: \ 153 } while (::testing::internal::AlwaysFalse()) 161 ::testing::TestPartResultArray gtest_failures;\ 162 ::testing::internal::SingleFailureChecker gtest_checker(\ 163 >est_failures, ::testing::TestPartResult::kFatalFailure, (substr));\ [all …]
|
/external/gtest/include/gtest/ |
D | gtest-spi.h | 40 namespace testing { 144 ::testing::TestPartResultArray gtest_failures;\ 145 ::testing::internal::SingleFailureChecker gtest_checker(\ 146 >est_failures, ::testing::TestPartResult::kFatalFailure, (substr));\ 148 ::testing::ScopedFakeTestPartResultReporter gtest_reporter(\ 149 ::testing::ScopedFakeTestPartResultReporter:: \ 153 } while (::testing::internal::AlwaysFalse()) 161 ::testing::TestPartResultArray gtest_failures;\ 162 ::testing::internal::SingleFailureChecker gtest_checker(\ 163 >est_failures, ::testing::TestPartResult::kFatalFailure, (substr));\ [all …]
|
/external/chromium_org/third_party/mesa/src/src/gtest/include/gtest/ |
D | gtest-spi.h | 40 namespace testing { 144 ::testing::TestPartResultArray gtest_failures;\ 145 ::testing::internal::SingleFailureChecker gtest_checker(\ 146 >est_failures, ::testing::TestPartResult::kFatalFailure, (substr));\ 148 ::testing::ScopedFakeTestPartResultReporter gtest_reporter(\ 149 ::testing::ScopedFakeTestPartResultReporter:: \ 153 } while (::testing::internal::AlwaysFalse()) 161 ::testing::TestPartResultArray gtest_failures;\ 162 ::testing::internal::SingleFailureChecker gtest_checker(\ 163 >est_failures, ::testing::TestPartResult::kFatalFailure, (substr));\ [all …]
|
/external/chromium_org/testing/gtest/include/gtest/ |
D | gtest-spi.h | 40 namespace testing { 144 ::testing::TestPartResultArray gtest_failures;\ 145 ::testing::internal::SingleFailureChecker gtest_checker(\ 146 >est_failures, ::testing::TestPartResult::kFatalFailure, (substr));\ 148 ::testing::ScopedFakeTestPartResultReporter gtest_reporter(\ 149 ::testing::ScopedFakeTestPartResultReporter:: \ 153 } while (::testing::internal::AlwaysFalse()) 161 ::testing::TestPartResultArray gtest_failures;\ 162 ::testing::internal::SingleFailureChecker gtest_checker(\ 163 >est_failures, ::testing::TestPartResult::kFatalFailure, (substr));\ [all …]
|
/external/llvm/utils/unittest/googletest/include/gtest/ |
D | gtest-spi.h | 40 namespace testing { 144 ::testing::TestPartResultArray gtest_failures;\ 145 ::testing::internal::SingleFailureChecker gtest_checker(\ 146 >est_failures, ::testing::TestPartResult::kFatalFailure, (substr));\ 148 ::testing::ScopedFakeTestPartResultReporter gtest_reporter(\ 149 ::testing::ScopedFakeTestPartResultReporter:: \ 153 } while (::testing::internal::AlwaysFalse()) 161 ::testing::TestPartResultArray gtest_failures;\ 162 ::testing::internal::SingleFailureChecker gtest_checker(\ 163 >est_failures, ::testing::TestPartResult::kFatalFailure, (substr));\ [all …]
|
/external/protobuf/gtest/test/ |
D | gtest_nc.cc | 48 testing::InitGoogleTest(&argc, argv); in main() 63 class MyTest : public testing::Test { 74 class MyTest : public testing::Test { 77 testing::Test::Setup(); // Tries to call SetUp() in the parent class. in SetUp() 87 class MyEnvironment : public testing::Environment { 98 class MyEnvironment : public testing::Environment { 102 testing::Environment::Setup(); in SetUp() 113 class FooTest : public testing::Test { 117 class BarTest : public testing::Test { 123 INSTANTIATE_TYPED_TEST_CASE_P(My, FooTest, testing::Types<int>); [all …]
|
D | gtest-death-test_test.cc | 38 using testing::internal::AlwaysFalse; 39 using testing::internal::AlwaysTrue; 66 namespace posix = ::testing::internal::posix; 68 using testing::Message; 69 using testing::internal::DeathTest; 70 using testing::internal::DeathTestFactory; 71 using testing::internal::FilePath; 72 using testing::internal::GetLastErrnoDescription; 73 using testing::internal::GetUnitTestImpl; 74 using testing::internal::ParseNaturalNumber; [all …]
|
D | gtest_output_test_.cc | 53 using testing::ScopedFakeTestPartResultReporter; 54 using testing::TestPartResultArray; 56 namespace posix = ::testing::internal::posix; 57 using testing::internal::String; 76 if (testing::Test::HasFatalFailure()) return; in TryTestSubroutine() 142 SCOPED_TRACE(testing::Message() << "n = " << n); in SubWithTrace() 171 SCOPED_TRACE(testing::Message() << "i = " << i); in TEST() 241 class NonFatalFailureInFixtureConstructorTest : public testing::Test { 266 class FatalFailureInFixtureConstructorTest : public testing::Test { 301 class NonFatalFailureInSetUpTest : public testing::Test { [all …]
|
/external/chromium_org/device/bluetooth/test/ |
D | mock_bluetooth_device.cc | 22 .WillByDefault(testing::Return(bluetooth_class_)); in MockBluetoothDevice() 24 .WillByDefault(testing::Return(name_)); in MockBluetoothDevice() 26 .WillByDefault(testing::Return(address_)); in MockBluetoothDevice() 28 .WillByDefault(testing::Return(DEVICE_UNKNOWN)); in MockBluetoothDevice() 30 .WillByDefault(testing::Return(kUnknownPower)); in MockBluetoothDevice() 32 .WillByDefault(testing::Return(kUnknownPower)); in MockBluetoothDevice() 34 .WillByDefault(testing::Return(kUnknownPower)); in MockBluetoothDevice() 36 .WillByDefault(testing::Return(VENDOR_ID_UNKNOWN)); in MockBluetoothDevice() 38 .WillByDefault(testing::Return(0)); in MockBluetoothDevice() 40 .WillByDefault(testing::Return(0)); in MockBluetoothDevice() [all …]
|
/external/chromium_org/third_party/angle/tests/preprocessor_tests/ |
D | identifier_test.cpp | 10 #define CLOSED_RANGE(x, y) testing::Range(x, static_cast<char>((y) + 1)) 28 public testing::WithParamInterface<char> 42 testing::Values('_')); 57 public testing::WithParamInterface<IdentifierParams> 74 testing::Combine(testing::Values('_'), 75 testing::Values('_'))); 80 testing::Combine(testing::Values('_'), 86 testing::Combine(testing::Values('_'), 92 testing::Combine(testing::Values('_'), 98 testing::Combine(CLOSED_RANGE('a', 'z'), [all …]
|
D | number_test.cpp | 10 #define CLOSED_RANGE(x, y) testing::Range(x, static_cast<char>((y) + 1)) 13 public testing::WithParamInterface<const char*> 22 using testing::_; in TEST_P() 30 testing::Values("1a", "08", "0xG")); 34 testing::Values("1eg", "0.a", "0.1.2", ".0a", ".0.1")); 38 public testing::WithParamInterface<IntegerParams> 58 testing::Combine(testing::Values(""), 63 testing::Combine(testing::Values("0"), 68 testing::Combine(testing::Values("0x", "0X"), 73 testing::Combine(testing::Values("0x", "0X"), [all …]
|
/external/chromium_org/chrome/test/logging/win/ |
D | test_log_collector.cc | 37 void Initialize(testing::UnitTest* unit_test); 40 void StartSessionForTest(const testing::TestInfo& test_info); 41 bool LogTestPartResult(const testing::TestPartResult& test_part_result); 42 void ProcessSessionForTest(const testing::TestInfo& test_info); 48 class EventListener : public testing::TestEventListener { 52 testing::TestEventListener* default_result_printer); 57 const testing::UnitTest& unit_test) OVERRIDE { in OnTestProgramStart() 62 virtual void OnTestIterationStart(const testing::UnitTest& unit_test, in OnTestIterationStart() 68 const testing::UnitTest& unit_test) OVERRIDE { in OnEnvironmentsSetUpStart() 73 const testing::UnitTest& unit_test) OVERRIDE { in OnEnvironmentsSetUpEnd() [all …]
|
/external/chromium_org/extensions/browser/api/bluetooth_socket/ |
D | bluetooth_socket_apitest.cc | 51 mock_adapter_ = new testing::StrictMock<MockBluetoothAdapter>(); in SetUpMockAdapter() 55 new testing::NiceMock<MockBluetoothDevice>(mock_adapter_.get(), in SetUpMockAdapter() 62 new testing::NiceMock<MockBluetoothDevice>(mock_adapter_.get(), in SetUpMockAdapter() 71 scoped_refptr<testing::StrictMock<MockBluetoothAdapter> > mock_adapter_; 72 scoped_ptr<testing::NiceMock<MockBluetoothDevice> > mock_device1_; 73 scoped_ptr<testing::NiceMock<MockBluetoothDevice> > mock_device2_; 109 .WillRepeatedly(testing::Return(mock_device1_.get())); in IN_PROC_BROWSER_TEST_F() 111 .WillOnce(testing::Return(static_cast<BluetoothDevice*>(NULL))); in IN_PROC_BROWSER_TEST_F() 115 scoped_refptr<testing::StrictMock<MockBluetoothSocket> > mock_socket in IN_PROC_BROWSER_TEST_F() 116 = new testing::StrictMock<MockBluetoothSocket>(); in IN_PROC_BROWSER_TEST_F() [all …]
|
/external/chromium_org/chrome/installer/util/ |
D | language_selector_unittest.cc | 76 : public ::testing::TestWithParam<const wchar_t*> { 89 ::testing::ValuesIn( 97 ::testing::ValuesIn( 105 ::testing::ValuesIn( 113 : public ::testing::TestWithParam< std::tr1::tuple<const wchar_t*, 127 ::testing::Combine( 128 ::testing::Values(L"en-gb"), 129 ::testing::Values(L"en-au", L"en-ca", L"en-nz", L"en-za"))); 134 ::testing::Combine( 135 ::testing::Values(L"iw"), [all …]
|
/external/clang/unittests/AST/ |
D | CommentParser.cpp | 35 class CommentParserTest : public ::testing::Test { 80 ::testing::AssertionResult HasChildCount(const Comment *C, size_t Count) { in HasChildCount() 82 return ::testing::AssertionFailure() << "Comment is NULL"; in HasChildCount() 85 return ::testing::AssertionFailure() in HasChildCount() 89 return ::testing::AssertionSuccess(); in HasChildCount() 93 ::testing::AssertionResult GetChildAt(const Comment *C, in GetChildAt() 97 return ::testing::AssertionFailure() << "Comment is NULL"; in GetChildAt() 100 return ::testing::AssertionFailure() in GetChildAt() 107 return ::testing::AssertionFailure() << "Child is NULL"; in GetChildAt() 111 return ::testing::AssertionFailure() in GetChildAt() [all …]
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
D | ListTestSuiteBuilder.java | 17 package com.google.common.collect.testing; 19 import com.google.common.collect.testing.features.CollectionFeature; 20 import com.google.common.collect.testing.features.Feature; 21 import com.google.common.collect.testing.testers.ListAddAllAtIndexTester; 22 import com.google.common.collect.testing.testers.ListAddAllTester; 23 import com.google.common.collect.testing.testers.ListAddAtIndexTester; 24 import com.google.common.collect.testing.testers.ListAddTester; 25 import com.google.common.collect.testing.testers.ListCreationTester; 26 import com.google.common.collect.testing.testers.ListEqualsTester; 27 import com.google.common.collect.testing.testers.ListGetTester; [all …]
|
D | AbstractCollectionTestSuiteBuilder.java | 17 package com.google.common.collect.testing; 19 import com.google.common.collect.testing.testers.CollectionAddAllTester; 20 import com.google.common.collect.testing.testers.CollectionAddTester; 21 import com.google.common.collect.testing.testers.CollectionClearTester; 22 import com.google.common.collect.testing.testers.CollectionContainsAllTester; 23 import com.google.common.collect.testing.testers.CollectionContainsTester; 24 import com.google.common.collect.testing.testers.CollectionCreationTester; 25 import com.google.common.collect.testing.testers.CollectionEqualsTester; 26 import com.google.common.collect.testing.testers.CollectionIsEmptyTester; 27 import com.google.common.collect.testing.testers.CollectionIteratorTester; [all …]
|
/external/chromium_org/chrome/test/base/ |
D | web_ui_browser_test_browsertest.cc | 137 ::testing::StrictMock<AsyncWebUIMessageHandler> message_handler_; 164 EXPECT_CALL(message_handler_, HandleTestFails(::testing::_)); in IN_PROC_BROWSER_TEST_F() 171 ::testing::InSequence s; in IN_PROC_BROWSER_TEST_F() 172 EXPECT_CALL(message_handler_, HandleTestContinues(::testing::_)); in IN_PROC_BROWSER_TEST_F() 173 EXPECT_CALL(message_handler_, HandleTestFails(::testing::_)); in IN_PROC_BROWSER_TEST_F() 180 EXPECT_CALL(message_handler_, HandleTestContinues(::testing::_)); in IN_PROC_BROWSER_TEST_F() 186 ::testing::InSequence s; in IN_PROC_BROWSER_TEST_F() 187 EXPECT_CALL(message_handler_, HandleTestContinues(::testing::_)); in IN_PROC_BROWSER_TEST_F() 188 EXPECT_CALL(message_handler_, HandleTestPasses(::testing::_)) in IN_PROC_BROWSER_TEST_F() 189 .WillOnce(::testing::InvokeWithoutArgs( in IN_PROC_BROWSER_TEST_F() [all …]
|
/external/chromium_org/testing/gtest/include/gtest/internal/ |
D | gtest-death-test-internal.h | 44 namespace testing { 169 ::testing::internal::FormatFileLocation(__FILE__, __LINE__).c_str(), \ 172 death_test->Abort(::testing::internal::DeathTest::TEST_THREW_EXCEPTION); \ 174 death_test->Abort(::testing::internal::DeathTest::TEST_THREW_EXCEPTION); \ 187 if (::testing::internal::AlwaysTrue()) { \ 188 const ::testing::internal::RE& gtest_regex = (regex); \ 189 ::testing::internal::DeathTest* gtest_dt; \ 190 if (!::testing::internal::DeathTest::Create(#statement, >est_regex, \ 195 ::testing::internal::scoped_ptr< ::testing::internal::DeathTest> \ 198 case ::testing::internal::DeathTest::OVERSEE_TEST: \ [all …]
|
/external/gtest/include/gtest/internal/ |
D | gtest-death-test-internal.h | 44 namespace testing { 169 ::testing::internal::FormatFileLocation(__FILE__, __LINE__).c_str(), \ 172 death_test->Abort(::testing::internal::DeathTest::TEST_THREW_EXCEPTION); \ 174 death_test->Abort(::testing::internal::DeathTest::TEST_THREW_EXCEPTION); \ 187 if (::testing::internal::AlwaysTrue()) { \ 188 const ::testing::internal::RE& gtest_regex = (regex); \ 189 ::testing::internal::DeathTest* gtest_dt; \ 190 if (!::testing::internal::DeathTest::Create(#statement, >est_regex, \ 195 ::testing::internal::scoped_ptr< ::testing::internal::DeathTest> \ 198 case ::testing::internal::DeathTest::OVERSEE_TEST: \ [all …]
|
/external/chromium_org/chrome/browser/sync/test/integration/ |
D | two_client_extension_settings_and_app_settings_sync_test.cc | 74 testing::AssertionResult StartWithSameSettingsTest( in StartWithSameSettingsTest() 94 return testing::AssertionFailure(); in StartWithSameSettingsTest() 96 return testing::AssertionFailure(); in StartWithSameSettingsTest() 98 return testing::AssertionFailure(); in StartWithSameSettingsTest() 102 return testing::AssertionFailure(); in StartWithSameSettingsTest() 104 return testing::AssertionFailure(); in StartWithSameSettingsTest() 108 return testing::AssertionFailure(); in StartWithSameSettingsTest() 110 return testing::AssertionFailure(); in StartWithSameSettingsTest() 112 return testing::AssertionSuccess(); in StartWithSameSettingsTest() 120 testing::AssertionResult StartWithDifferentSettingsTest( in StartWithDifferentSettingsTest() [all …]
|