Searched defs:expectation (Results 1 - 16 of 16) sorted by path

/external/android-mock/src/com/google/android/testing/mocking/
H A DAndroidMock.java57 * The various expectation methods such as {@link #eq(boolean)}, {@link #and(boolean, boolean)},
58 * and {@link #leq(byte)} all have nonsense return values. Each of the expectation methods may only
65 * Similarly, the complex expectation methods ({@code #and}, {@code #or}, and {@code not}) take
67 * other than an expectation method is provided. E.g. {@code mockObject.doFoo(and(gt(5), lt(10));}
73 * expectation APIs is not made clear by the method signatures of these expectation methods. In
75 * expectation methods, and not just any random method that returns a {@literal byte} or even a
243 * Returns the expectation setter for the last expected invocation in the current thread.
247 * or according to parameter expectation criteria. Some examples of parameter expectation
1509 not(boolean expectation) argument
1534 not(byte expectation) argument
1558 not(char expectation) argument
1583 not(double expectation) argument
1608 not(float expectation) argument
1633 not(int expectation) argument
1658 not(long expectation) argument
1683 not(short expectation) argument
1708 not(T expectation) argument
[all...]
/external/chromium/chrome/browser/download/
H A Ddownload_browsertest.cc497 // |expectation| indicates whether or not a Select File dialog should be
499 // If the dialog appears, the routine exits. The only effect |expectation|
506 SelectExpectation expectation,
520 if (expectation != EXPECT_NOTHING) {
521 EXPECT_EQ(expectation == EXPECT_SELECT_DIALOG,
529 SelectExpectation expectation) {
534 expectation,
503 DownloadAndWaitWithDisposition(Browser* browser, const GURL& url, WindowOpenDisposition disposition, SelectExpectation expectation, int browser_test_flags) argument
527 DownloadAndWait(Browser* browser, const GURL& url, SelectExpectation expectation) argument
/external/chromium/chrome/browser/password_manager/
H A Dpassword_store_mac_unittest.cc199 PasswordFormData* expectation = expectations[i]; local
200 EXPECT_EQ(expectation->scheme, form->scheme) << test_label;
201 EXPECT_EQ(std::string(expectation->signon_realm), form->signon_realm)
203 EXPECT_EQ(GURL(expectation->origin), form->origin) << test_label;
204 EXPECT_EQ(GURL(expectation->action), form->action) << test_label;
205 EXPECT_EQ(WideToUTF16(expectation->submit_element), form->submit_element)
207 EXPECT_EQ(WideToUTF16(expectation->username_element),
209 EXPECT_EQ(WideToUTF16(expectation->password_element),
211 if (expectation->username_value) {
212 EXPECT_EQ(WideToUTF16(expectation
[all...]
/external/chromium/net/proxy/
H A Dproxy_config_unittest.cc13 void ExpectProxyServerEquals(const char* expectation, argument
15 if (expectation == NULL) {
18 EXPECT_EQ(expectation, proxy_server.ToURI());
/external/chromium_org/chrome/browser/media/
H A Dencrypted_media_browsertest.cc99 const char* expectation) {
111 RunMediaTestPage(html_page, &query_params, expectation, true);
94 RunEncryptedMediaTest(const char* html_page, const char* media_file, const char* media_type, const char* key_system, SrcType src_type, const char* expectation) argument
/external/chromium_org/chrome/browser/media_galleries/fileapi/
H A Dnative_media_file_util_unittest.cc209 base::PlatformFileError expectation = local
218 url, base::Bind(&ExpectEqHelper, test_name, expectation));
221 url, base::Bind(&ExpectEqHelper, test_name, expectation));
262 base::PlatformFileError expectation = local
268 base::Bind(&ExpectEqHelper, test_name, expectation));
297 base::PlatformFileError expectation = base::PLATFORM_FILE_OK; local
300 expectation = base::PLATFORM_FILE_ERROR_NOT_FOUND;
303 expectation = base::PLATFORM_FILE_ERROR_INVALID_OPERATION;
309 base::Bind(&ExpectEqHelper, test_name, expectation));
346 base::PlatformFileError expectation; local
402 base::PlatformFileError expectation = base::PLATFORM_FILE_OK; local
451 base::PlatformFileError expectation; local
497 base::PlatformFileError expectation = base::PLATFORM_FILE_OK; local
527 base::PlatformFileError expectation = base::PLATFORM_FILE_OK; local
[all...]
/external/chromium_org/chrome/browser/media_galleries/
H A Dmedia_galleries_permissions_unittest.cc116 std::vector<MediaGalleryPermission>* expectation; member in struct:MediaGalleriesPermissionsTest::TestData
126 EXPECT_EQ(test_data[i].expectation->size(), actual.size());
128 permission_entry < test_data[i].expectation->size() &&
131 EXPECT_EQ(test_data[i].expectation->at(permission_entry).pref_id,
133 EXPECT_EQ(test_data[i].expectation->at(permission_entry).has_permission,
/external/chromium_org/chrome/browser/password_manager/
H A Dpassword_store_mac_unittest.cc200 PasswordFormData* expectation = expectations[i]; local
201 EXPECT_EQ(expectation->scheme, form->scheme) << test_label;
202 EXPECT_EQ(std::string(expectation->signon_realm), form->signon_realm)
204 EXPECT_EQ(GURL(expectation->origin), form->origin) << test_label;
205 EXPECT_EQ(GURL(expectation->action), form->action) << test_label;
206 EXPECT_EQ(WideToUTF16(expectation->submit_element), form->submit_element)
208 EXPECT_EQ(WideToUTF16(expectation->username_element),
210 EXPECT_EQ(WideToUTF16(expectation->password_element),
212 if (expectation->username_value) {
213 EXPECT_EQ(WideToUTF16(expectation
[all...]
/external/chromium_org/chrome/browser/ui/autofill/
H A Dautofill_dialog_controller_browsertest.cc584 base::string16 expectation = local
588 expectations.push_back(expectation);
626 base::string16 expectation = local
630 EXPECT_EQ(expectation, view->GetTextContentsOfInput(inputs[i]));
640 base::string16 expectation = local
645 expectation = ASCIIToUTF16("United States");
647 expectations.push_back(expectation);
/external/chromium_org/chrome/installer/util/
H A Dinstallation_validator.cc361 CommandExpectations::iterator expectation; local
364 // Do we have an expectation for this command?
365 expectation = the_expectations.find(cmd_id);
366 if (expectation != the_expectations.end()) {
367 (expectation->second)(ctx, cmd_iterators.first->second, is_valid);
369 the_expectations.erase(expectation);
543 const SwitchExpectations::value_type& expectation = expected[i]; local
544 if (command.HasSwitch(expectation.first) != expectation.second) {
547 << (expectation
[all...]
/external/chromium_org/content/browser/media/
H A Dencrypted_media_browsertest.cc92 const char* expectation) {
104 RunMediaTestPage(html_page, &query_params, expectation, true);
87 RunEncryptedMediaTest(const char* html_page, const char* media_file, const char* media_type, const char* key_system, SrcType src_type, const char* expectation) argument
H A Dmedia_source_browsertest.cc33 const char* expectation) {
42 RunMediaTestPage("media_source_player.html", &query_params, expectation,
32 TestSimplePlayback(const char* media_file, const char* media_type, const char* expectation) argument
/external/chromium_org/gpu/gles2_conform_support/
H A Dgles2_conform_test.cc54 int32 expectation = local
56 if (expectation != gpu::GPUTestExpectationsParser::kGpuTestPass) {
/external/chromium_org/media/base/
H A Dmedia_file_checker_unittest.cc13 static void RunMediaFileChecker(const std::string& filename, bool expectation) { argument
25 EXPECT_EQ(expectation, result);
/external/chromium_org/net/proxy/
H A Dproxy_config_unittest.cc13 void ExpectProxyServerEquals(const char* expectation, argument
15 if (expectation == NULL) {
18 EXPECT_EQ(expectation, proxy_servers.ToPacString());
/external/chromium_org/v8/test/mjsunit/
H A Ddebug-evaluate-const.js84 var expectation = { "const0" : 0,
93 assertEquals(expectation[name], value);

Completed in 825 milliseconds