Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Side by Side Diff: ios/chrome/browser/omaha/omaha_service_unittest.mm

Issue 2691433005: [ObjC ARC] Converts ios/chrome/browser/omaha:unit_tests to ARC. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ios/chrome/browser/omaha/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "ios/chrome/browser/omaha/omaha_service.h" 5 #import "ios/chrome/browser/omaha/omaha_service.h"
6 6
7 #include <regex.h> 7 #include <regex.h>
8 #include <sys/types.h> 8 #include <sys/types.h>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 10 matching lines...) Expand all
21 #include "ios/chrome/test/ios_chrome_scoped_testing_chrome_browser_state_manager .h" 21 #include "ios/chrome/test/ios_chrome_scoped_testing_chrome_browser_state_manager .h"
22 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h" 22 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h"
23 #include "ios/public/provider/chrome/browser/omaha/omaha_service_provider.h" 23 #include "ios/public/provider/chrome/browser/omaha/omaha_service_provider.h"
24 #include "ios/web/public/test/test_web_thread_bundle.h" 24 #include "ios/web/public/test/test_web_thread_bundle.h"
25 #include "ios/web/public/web_thread.h" 25 #include "ios/web/public/web_thread.h"
26 #include "net/url_request/test_url_fetcher_factory.h" 26 #include "net/url_request/test_url_fetcher_factory.h"
27 #include "testing/gtest/include/gtest/gtest.h" 27 #include "testing/gtest/include/gtest/gtest.h"
28 #include "testing/gtest_mac.h" 28 #include "testing/gtest_mac.h"
29 #include "testing/platform_test.h" 29 #include "testing/platform_test.h"
30 30
31 #if !defined(__has_feature) || !__has_feature(objc_arc)
32 #error "This file requires ARC support."
33 #endif
34
31 namespace { 35 namespace {
32 36
33 const char kUserDataDir[] = FILE_PATH_LITERAL("."); 37 const char kUserDataDir[] = FILE_PATH_LITERAL(".");
34 38
35 } // namespace 39 } // namespace
36 40
37 class OmahaServiceTest : public PlatformTest { 41 class OmahaServiceTest : public PlatformTest {
38 public: 42 public:
39 OmahaServiceTest() 43 OmahaServiceTest()
40 : need_update_(false), 44 : need_update_(false),
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 "\" status=\"ok\">" 498 "\" status=\"ok\">"
495 "<updatecheck status=\"noupdate\"/><ping status=\"ok\"/>" 499 "<updatecheck status=\"noupdate\"/><ping status=\"ok\"/>"
496 "</app></response>"; 500 "</app></response>";
497 fetcher->SetResponseString(response); 501 fetcher->SetResponseString(response);
498 fetcher->delegate()->OnURLFetchComplete(fetcher); 502 fetcher->delegate()->OnURLFetchComplete(fetcher);
499 503
500 EXPECT_FALSE(service.IsNextPingInstallRetry()); 504 EXPECT_FALSE(service.IsNextPingInstallRetry());
501 id1 = service.GetNextPingRequestId(OmahaService::USAGE_PING); 505 id1 = service.GetNextPingRequestId(OmahaService::USAGE_PING);
502 ASSERT_NE(id1, service.GetNextPingRequestId(OmahaService::USAGE_PING)); 506 ASSERT_NE(id1, service.GetNextPingRequestId(OmahaService::USAGE_PING));
503 } 507 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/omaha/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698