/dalvik/unit-tests/ |
dvmHumanReadableDescriptor_test.cpp | 6 ASSERT_EQ("java.lang.Class[]", dvmHumanReadableDescriptor("[Ljava/lang/Class;")); 7 ASSERT_EQ("java.lang.Class[][]", dvmHumanReadableDescriptor("[[Ljava/lang/Class;")); 11 ASSERT_EQ("java.lang.String", dvmHumanReadableDescriptor("Ljava.lang.String;")); 12 ASSERT_EQ("java.lang.String", dvmHumanReadableDescriptor("Ljava/lang/String;")); 16 ASSERT_EQ("boolean[]", dvmHumanReadableDescriptor("[Z")); 17 ASSERT_EQ("boolean[][]", dvmHumanReadableDescriptor("[[Z")); 18 ASSERT_EQ("byte[]", dvmHumanReadableDescriptor("[B")); 19 ASSERT_EQ("byte[][]", dvmHumanReadableDescriptor("[[B")); 20 ASSERT_EQ("char[]", dvmHumanReadableDescriptor("[C")); 21 ASSERT_EQ("char[][]", dvmHumanReadableDescriptor("[[C")) [all...] |
/frameworks/base/libs/ui/tests/ |
InputEvent_test.cpp | 41 ASSERT_EQ(0ULL, coords.bits); 50 ASSERT_EQ(0, coords.getAxisValue(0)) 52 ASSERT_EQ(0, coords.getAxisValue(1)) 56 ASSERT_EQ(OK, coords.setAxisValue(1, 5)); 57 ASSERT_EQ(0x00000002ULL, coords.bits); 58 ASSERT_EQ(5, coords.values[0]); 60 ASSERT_EQ(0, coords.getAxisValue(0)) 62 ASSERT_EQ(5, coords.getAxisValue(1)) 66 ASSERT_EQ(OK, coords.setAxisValue(3, 2)); 67 ASSERT_EQ(0x0000000aULL, coords.bits) [all...] |
/external/chromium/base/ |
string_piece_unittest.cc | 107 ASSERT_EQ(a[6], 'g'); 108 ASSERT_EQ(b[0], 'a'); 109 ASSERT_EQ(c[2], 'z'); 110 ASSERT_EQ(f[3], '\0'); 111 ASSERT_EQ(f[5], '5'); 113 ASSERT_EQ(*d.data(), 'f'); 114 ASSERT_EQ(d.data()[5], 'r'); 117 ASSERT_EQ(*a.begin(), 'a'); 118 ASSERT_EQ(*(b.begin() + 2), 'c'); 119 ASSERT_EQ(*(c.end() - 1), 'z') [all...] |
/external/chromium/base/i18n/ |
char_iterator_unittest.cc | 17 ASSERT_EQ(0, empty_iter.array_pos()); 18 ASSERT_EQ(0, empty_iter.char_pos()); 24 ASSERT_EQ(0, iter.array_pos()); 25 ASSERT_EQ(0, iter.char_pos()); 26 ASSERT_EQ('s', iter.get()); 30 ASSERT_EQ(1, iter.array_pos()); 31 ASSERT_EQ(1, iter.char_pos()); 32 ASSERT_EQ(251, iter.get()); 36 ASSERT_EQ(3, iter.array_pos()); 37 ASSERT_EQ(2, iter.char_pos()) [all...] |
/frameworks/base/libs/utils/tests/ |
BlobCache_test.cpp | 45 ASSERT_EQ(size_t(4), mBC->get("abcd", 4, buf, 4)); 46 ASSERT_EQ('e', buf[0]); 47 ASSERT_EQ('f', buf[1]); 48 ASSERT_EQ('g', buf[2]); 49 ASSERT_EQ('h', buf[3]); 56 ASSERT_EQ(size_t(2), mBC->get("ab", 2, buf, 2)); 57 ASSERT_EQ('c', buf[0]); 58 ASSERT_EQ('d', buf[1]); 59 ASSERT_EQ(size_t(2), mBC->get("ef", 2, buf, 2)); 60 ASSERT_EQ('g', buf[0]) [all...] |
/frameworks/base/opengl/tests/EGLTest/ |
EGL_test.cpp | 37 ASSERT_EQ(EGL_SUCCESS, eglGetError()); 42 ASSERT_EQ(EGL_SUCCESS, eglGetError()); 49 ASSERT_EQ(EGL_TRUE, success); 50 ASSERT_EQ(EGL_SUCCESS, eglGetError()); 66 ASSERT_EQ(EGL_TRUE, success); 67 ASSERT_EQ(EGL_SUCCESS, eglGetError()); 73 ASSERT_EQ(EGL_TRUE, success); 74 ASSERT_EQ(EGL_SUCCESS, eglGetError()); 76 ASSERT_EQ(EGL_TRUE, success); 77 ASSERT_EQ(EGL_SUCCESS, eglGetError()) [all...] |
/external/chromium/chrome/common/extensions/ |
extension_action_unittest.cc | 39 ASSERT_EQ("", action.GetTitle(1)); 41 ASSERT_EQ("foo", action.GetTitle(1)); 42 ASSERT_EQ("foo", action.GetTitle(100)); 44 ASSERT_EQ("foo", action.GetTitle(1)); 45 ASSERT_EQ("bar", action.GetTitle(100)); 47 ASSERT_EQ("baz", action.GetTitle(1)); 49 ASSERT_EQ("baz", action.GetTitle(100)); 62 ASSERT_EQ(-1, action.GetIconIndex(1)); 66 ASSERT_EQ(1, action.GetIconIndex(1)); 67 ASSERT_EQ(1, action.GetIconIndex(100)) [all...] |
/external/chromium/chrome/browser/download/ |
download_request_limiter_unittest.cc | 90 ASSERT_EQ(DownloadRequestLimiter::ALLOW_ONE_DOWNLOAD, 96 ASSERT_EQ(DownloadRequestLimiter::PROMPT_BEFORE_DOWNLOAD, 100 ASSERT_EQ(1, continue_count_); 101 ASSERT_EQ(0, cancel_count_); 102 ASSERT_EQ(0, ask_allow_count_); 109 ASSERT_EQ(1, ask_allow_count_); 111 ASSERT_EQ(DownloadRequestLimiter::ALLOW_ALL_DOWNLOADS, 115 ASSERT_EQ(1, continue_count_); 116 ASSERT_EQ(0, cancel_count_); 122 ASSERT_EQ(0, ask_allow_count_) [all...] |
/external/chromium/chrome/browser/search_engines/ |
template_url_fetcher_unittest.cc | 195 ASSERT_EQ(0, set_default_called_); 196 ASSERT_EQ(0, add_provider_called_); 197 ASSERT_EQ(0, callbacks_destroyed_); 200 ASSERT_EQ(0, set_default_called_); 201 ASSERT_EQ(0, add_provider_called_); 202 ASSERT_EQ(1, callbacks_destroyed_); 221 ASSERT_EQ(0, set_default_called_); 222 ASSERT_EQ(0, add_provider_called_); 223 ASSERT_EQ(0, callbacks_destroyed_); 245 ASSERT_EQ( [all...] |
/external/chromium/chrome/browser/accessibility/ |
browser_accessibility_win_unittest.cc | 105 ASSERT_EQ(3, CountedBrowserAccessibility::global_obj_count_); 109 ASSERT_EQ(0, CountedBrowserAccessibility::global_obj_count_); 119 ASSERT_EQ(3, CountedBrowserAccessibility::global_obj_count_); 128 ASSERT_EQ(S_OK, hr); 131 ASSERT_EQ(S_OK, hr); 136 ASSERT_EQ(2, CountedBrowserAccessibility::global_obj_count_); 141 ASSERT_EQ(1, CountedBrowserAccessibility::global_obj_count_); 143 ASSERT_EQ(0, CountedBrowserAccessibility::global_obj_count_); 178 ASSERT_EQ(S_OK, hr); 182 ASSERT_EQ(S_OK, hr) [all...] |
/external/chromium/chrome/browser/extensions/ |
extension_menu_manager_unittest.cc | 78 ASSERT_EQ(item1, manager_.GetItemById(item1->id())); 81 ASSERT_EQ(1u, items->size()); 82 ASSERT_EQ(item1, items->at(0)); 87 ASSERT_EQ(item2, manager_.GetItemById(item2->id())); 89 ASSERT_EQ(2u, items->size()); 90 ASSERT_EQ(item1, items->at(0)); 91 ASSERT_EQ(item2, items->at(1)); 98 ASSERT_EQ(item3, manager_.GetItemById(id3)); 99 ASSERT_EQ(3u, manager_.MenuItems(extension_id)->size()); 101 ASSERT_EQ(NULL, manager_.GetItemById(id3)) [all...] |
extension_crash_recovery_browsertest.cc | 92 ASSERT_EQ(extension_host->render_view_host()->process(), 128 ASSERT_EQ(size_before, GetExtensionService()->extensions()->size()); 129 ASSERT_EQ(crash_size_before + 1, 135 ASSERT_EQ(crash_size_before, 146 ASSERT_EQ(size_before, GetExtensionService()->extensions()->size()); 147 ASSERT_EQ(crash_size_before + 1, 155 ASSERT_EQ(crash_size_before, 163 ASSERT_EQ(size_before, GetExtensionService()->extensions()->size()); 175 ASSERT_EQ(0U, CountBalloons()); 183 ASSERT_EQ(size_before, GetExtensionService()->extensions()->size()) [all...] |
extension_rlz_apitest.cc | 73 ASSERT_EQ(3, MockRlzSendFinancialPingFunction::expected_count()); 83 ASSERT_EQ(ERROR_SUCCESS, key.ReadValueDW(L"D3I", &value)); 84 ASSERT_EQ(1, value); 85 ASSERT_EQ(ERROR_SUCCESS, key.ReadValueDW(L"D3S", &value)); 86 ASSERT_EQ(1, value); 87 ASSERT_EQ(ERROR_SUCCESS, key.ReadValueDW(L"D3F", &value)); 88 ASSERT_EQ(1, value); 90 ASSERT_EQ(ERROR_SUCCESS, key.ReadValueDW(L"D4I", &value)); 91 ASSERT_EQ(1, value);
|
extension_management_apitest.cc | 89 ASSERT_EQ(2u, BrowserList::GetBrowserCount(browser()->profile())); 91 ASSERT_EQ(Browser::TYPE_APP_POPUP, app_browser->type()); 100 ASSERT_EQ(1u, BrowserList::GetBrowserCount(browser()->profile())); 114 ASSERT_EQ(app_id, app_id_new); 118 ASSERT_EQ(2u, BrowserList::GetBrowserCount(browser()->profile())); 120 ASSERT_EQ(Browser::TYPE_APP_POPUP, app_browser->type()); 135 ASSERT_EQ(1u, BrowserList::GetBrowserCount(browser()->profile())); 136 ASSERT_EQ(1, browser()->tab_count()); 144 ASSERT_EQ(1u, BrowserList::GetBrowserCount(browser()->profile())); 145 ASSERT_EQ(2, browser()->tab_count()) [all...] |
/external/chromium/net/base/ |
cert_verifier_unittest.cc | 58 ASSERT_EQ(ERR_IO_PENDING, error); 62 ASSERT_EQ(1u, verifier.requests()); 63 ASSERT_EQ(0u, verifier.cache_hits()); 64 ASSERT_EQ(0u, verifier.inflight_joins()); 72 ASSERT_EQ(2u, verifier.requests()); 73 ASSERT_EQ(1u, verifier.cache_hits()); 74 ASSERT_EQ(0u, verifier.inflight_joins()); 99 ASSERT_EQ(ERR_IO_PENDING, error); 103 ASSERT_EQ(ERR_IO_PENDING, error); 109 ASSERT_EQ(2u, verifier.requests()) [all...] |
/external/chromium/chrome/browser/webdata/ |
web_apps_table_unittest.cc | 46 ASSERT_EQ(sql::INIT_OK, db.Init(file_)); 64 ASSERT_EQ(sql::INIT_OK, db.Init(file_)); 70 ASSERT_EQ(0U, images.size()); 81 ASSERT_EQ(1U, images.size()); 82 ASSERT_EQ(16, images[0].width()); 83 ASSERT_EQ(16, images[0].height()); 102 ASSERT_EQ(1U, images.size()); 103 ASSERT_EQ(16, images[0].width()); 104 ASSERT_EQ(16, images[0].height()); 107 ASSERT_EQ(test_pixel_1, images[0].getAddr32(0, 1)[0]) [all...] |
/external/chromium/chrome/browser/prefs/ |
pref_notifier_impl_unittest.cc | 100 ASSERT_EQ(1u, notifier.CountObserver(pref_name, &obs1_)); 101 ASSERT_EQ(0u, notifier.CountObserver(pref_name2, &obs1_)); 102 ASSERT_EQ(0u, notifier.CountObserver(pref_name, &obs2_)); 103 ASSERT_EQ(0u, notifier.CountObserver(pref_name2, &obs2_)); 110 ASSERT_EQ(1u, notifier.CountObserver(pref_name, &obs1_)); 111 ASSERT_EQ(0u, notifier.CountObserver(pref_name2, &obs1_)); 112 ASSERT_EQ(0u, notifier.CountObserver(pref_name, &obs2_)); 113 ASSERT_EQ(0u, notifier.CountObserver(pref_name2, &obs2_)); 118 ASSERT_EQ(1u, notifier.CountObserver(pref_name, &obs1_)); 119 ASSERT_EQ(1u, notifier.CountObserver(pref_name2, &obs1_)) [all...] |
proxy_prefs_unittest.cc | 28 ASSERT_EQ(ProxyPrefs::MODE_DIRECT, 0); 29 ASSERT_EQ(ProxyPrefs::MODE_AUTO_DETECT, 1); 30 ASSERT_EQ(ProxyPrefs::MODE_PAC_SCRIPT, 2); 31 ASSERT_EQ(ProxyPrefs::MODE_FIXED_SERVERS, 3); 32 ASSERT_EQ(ProxyPrefs::MODE_SYSTEM, 4); 34 ASSERT_EQ(ProxyPrefs::kModeCount, 5);
|
/frameworks/base/libs/gui/tests/ |
SurfaceTextureClient_test.cpp | 41 ASSERT_EQ(EGL_SUCCESS, eglGetError()); 46 ASSERT_EQ(EGL_SUCCESS, eglGetError()); 52 ASSERT_EQ(EGL_SUCCESS, eglGetError()); 59 ASSERT_EQ(EGL_SUCCESS, eglGetError()); 63 ASSERT_EQ(EGL_SUCCESS, eglGetError()); 67 ASSERT_EQ(EGL_SUCCESS, eglGetError()); 121 ASSERT_EQ(EGL_SUCCESS, eglGetError()); 127 ASSERT_EQ(EGL_SUCCESS, eglGetError()); 143 ASSERT_EQ(EGL_SUCCESS, eglGetError()); 164 ASSERT_EQ(OK, mANW->dequeueBuffer(mANW.get(), &buf)) [all...] |
/external/chromium/base/json/ |
json_writer_unittest.cc | 16 ASSERT_EQ("null", output_js); 22 ASSERT_EQ("{}", output_js); 28 ASSERT_EQ("[]", output_js); 34 ASSERT_EQ("1.0", output_js); 40 ASSERT_EQ("0.2", output_js); 46 ASSERT_EQ("-0.8", output_js); 63 ASSERT_EQ("{\"list\":[{\"inner int\":10},[],true]}", output_js); 72 ASSERT_EQ("{" JSON_NEWLINE 89 ASSERT_EQ("{\"a.b\":3,\"c\":2,\"d.e.f\":{\"g.h.i.j\":1}}", output_js); 95 ASSERT_EQ("{\"a\":{\"b\":2},\"a.b\":1}", output_js) [all...] |
/frameworks/base/services/input/tests/ |
InputReader_test.cpp | 421 ASSERT_EQ(size_t(0), mEvents.size()) 928 ASSERT_EQ(InputConfiguration::KEYBOARD_NOKEYS, config.keyboard); 929 ASSERT_EQ(InputConfiguration::NAVIGATION_NONAV, config.navigation); 930 ASSERT_EQ(InputConfiguration::TOUCHSCREEN_NOTOUCH, config.touchScreen); 940 ASSERT_EQ(InputConfiguration::KEYBOARD_QWERTY, config.keyboard); 941 ASSERT_EQ(InputConfiguration::NAVIGATION_NONAV, config.navigation); 942 ASSERT_EQ(InputConfiguration::TOUCHSCREEN_NOTOUCH, config.touchScreen); 954 ASSERT_EQ(InputConfiguration::KEYBOARD_NOKEYS, config.keyboard); 955 ASSERT_EQ(InputConfiguration::NAVIGATION_NONAV, config.navigation); 956 ASSERT_EQ(InputConfiguration::TOUCHSCREEN_FINGER, config.touchScreen) [all...] |
/external/chromium/chrome/browser/sync/glue/ |
session_model_associator_unittest.cc | 67 ASSERT_EQ(1U, win->tabs.size()); 68 ASSERT_EQ(1, win->selected_tab_index); 69 ASSERT_EQ(1, win->type); 70 ASSERT_EQ(1U, tracker.num_foreign_sessions()); 71 ASSERT_EQ(1U, tracker.num_foreign_tabs(std::string("tag"))); 96 ASSERT_EQ(13, tab.tab_visual_index); 97 ASSERT_EQ(3, tab.current_navigation_index); 99 ASSERT_EQ("app_id", tab.extension_app_id); 100 ASSERT_EQ(12, tab.navigations[0].index()); 101 ASSERT_EQ(GURL("referrer"), tab.navigations[0].referrer()) [all...] |
/external/chromium/base/win/ |
registry_unittest.cc | 25 ASSERT_EQ(ERROR_SUCCESS, key.Create(HKEY_CURRENT_USER, kRootKey, KEY_READ)); 31 ASSERT_EQ(ERROR_SUCCESS, key.DeleteKey(kRootKey)); 43 ASSERT_EQ(ERROR_SUCCESS, key.Create(HKEY_CURRENT_USER, foo_key.c_str(), 47 ASSERT_EQ(ERROR_SUCCESS, key.Open(HKEY_CURRENT_USER, foo_key.c_str(), 59 ASSERT_EQ(ERROR_SUCCESS, key.WriteValue(kStringValueName, kStringData)); 60 ASSERT_EQ(ERROR_SUCCESS, key.WriteValue(kDWORDValueName, kDWORDData)); 61 ASSERT_EQ(ERROR_SUCCESS, key.WriteValue(kInt64ValueName, &kInt64Data, 72 ASSERT_EQ(ERROR_SUCCESS, key.ReadValue(kStringValueName, &string_value)); 73 ASSERT_EQ(ERROR_SUCCESS, key.ReadValueDW(kDWORDValueName, &dword_value)); 74 ASSERT_EQ(ERROR_SUCCESS, key.ReadInt64(kInt64ValueName, &int64_value)) [all...] |
/external/chromium/chrome/browser/ |
background_application_list_model_unittest.cc | 111 ASSERT_EQ(0U, model->size()); 119 ASSERT_EQ(0U, service->extensions()->size()); 120 ASSERT_EQ(0U, model->size()); 124 ASSERT_EQ(1U, service->extensions()->size()); 125 ASSERT_EQ(0U, model->size()); 128 ASSERT_EQ(2U, service->extensions()->size()); 129 ASSERT_EQ(1U, model->size()); 132 ASSERT_EQ(3U, service->extensions()->size()); 133 ASSERT_EQ(1U, model->size()); 136 ASSERT_EQ(4U, service->extensions()->size()) [all...] |
/system/media/wilhelm/tests/listening/ |
seekTorture.c | 26 #define ASSERT_EQ(x, y) assert((x) == (y)) 41 ASSERT_EQ(SL_RESULT_SUCCESS, result); 43 ASSERT_EQ(SL_RESULT_SUCCESS, result); 46 ASSERT_EQ(SL_RESULT_SUCCESS, result); 51 ASSERT_EQ(SL_RESULT_SUCCESS, result); 53 ASSERT_EQ(SL_RESULT_SUCCESS, result); 77 ASSERT_EQ(SL_RESULT_SUCCESS, result); 79 ASSERT_EQ(SL_RESULT_SUCCESS, result); 82 ASSERT_EQ(SL_RESULT_SUCCESS, result); 85 ASSERT_EQ(SL_RESULT_SUCCESS, result) [all...] |