@@ -65,7 +65,7 @@ class StringLoaderFactory : public CachingManager::LoaderFactory {
65
65
auto servable_creator = [&](std::unique_ptr<string>* servable) {
66
66
servable->reset (new string);
67
67
**servable = strings::StrCat (id.name , " -" , id.version );
68
- return OkStatus ();
68
+ return absl:: OkStatus ();
69
69
};
70
70
std::unique_ptr<Loader> loader;
71
71
loader.reset (new SimpleLoader<string>(
@@ -346,7 +346,7 @@ TEST_P(CachingManagerTest, ServableHandleWrongType) {
346
346
// The servable is supposed to be of type string, but we request for a handle
347
347
// of type int. This should cause an invalid argument error.
348
348
ServableHandle<int > handle;
349
- const Status status = manager_->GetServableHandle (
349
+ const absl:: Status status = manager_->GetServableHandle (
350
350
ServableRequest::FromId ({kServableName , 30 }), &handle);
351
351
ASSERT_FALSE (status.ok ()) << status;
352
352
EXPECT_EQ (error::INVALID_ARGUMENT, status.code ());
@@ -357,7 +357,7 @@ TEST_P(CachingManagerTest, ServableHandleError) {
357
357
std::unique_ptr<CachingManager> error_manager =
358
358
CreateManagerWithErrorLoaderFactory ();
359
359
ServableHandle<string> handle;
360
- const Status status = error_manager->GetServableHandle (
360
+ const absl:: Status status = error_manager->GetServableHandle (
361
361
ServableRequest::FromId ({kServableName , 30 }), &handle);
362
362
EXPECT_FALSE (status.ok ()) << status;
363
363
}
@@ -419,7 +419,7 @@ TEST_P(CachingManagerTest, AvailableServableHandlesError) {
419
419
std::unique_ptr<CachingManager> error_manager =
420
420
CreateManagerWithErrorLoaderFactory ();
421
421
ServableHandle<string> handle;
422
- const Status status = error_manager->GetServableHandle (
422
+ const absl:: Status status = error_manager->GetServableHandle (
423
423
ServableRequest::FromId ({kServableName , 30 }), &handle);
424
424
ASSERT_FALSE (status.ok ()) << status;
425
425
std::map<ServableId, ServableHandle<string>> handles =
@@ -474,7 +474,7 @@ TEST_P(CachingManagerTest, EventBusSingleRequest) {
474
474
// Check that the state published on the event-bus matches produced by the
475
475
// loader-factory for a successful request.
476
476
const ServableState expected_published_state = {
477
- id, ServableState::ManagerState::kAvailable , OkStatus ()};
477
+ id, ServableState::ManagerState::kAvailable , absl:: OkStatus ()};
478
478
EXPECT_THAT (*servable_state_monitor_.GetState (id),
479
479
EqualsServableState (expected_published_state));
480
480
}
@@ -485,7 +485,7 @@ TEST_P(CachingManagerTest, EventBusErrorHandle) {
485
485
CreateManagerWithErrorLoaderFactory ();
486
486
ServableHandle<string> handle;
487
487
const ServableId id = {kServableName , 30 };
488
- const Status status =
488
+ const absl:: Status status =
489
489
error_manager->GetServableHandle (ServableRequest::FromId (id), &handle);
490
490
// Check that the state published on the event-bus matches that produced
491
491
// by the loader-factory for an error.
@@ -502,14 +502,14 @@ TEST_P(CachingManagerTest, EventBusErrorHandle) {
502
502
TEST_P (CachingManagerTest, ConcurrentDisjointRequests) {
503
503
// Track the status of each request.
504
504
mutex status_mu;
505
- std::vector<Status> statuses (4 );
505
+ std::vector<absl:: Status> statuses (4 );
506
506
{
507
507
ThreadPoolExecutor request_executor (Env::Default (), " GetHandles" ,
508
508
kNumThreads );
509
509
for (int i = 0 ; i < 4 ; i++) {
510
510
request_executor.Schedule ([this , i, &statuses, &status_mu]() {
511
511
ServableHandle<string> handle;
512
- const Status status =
512
+ const absl:: Status status =
513
513
manager_->GetServableHandle ({kServableName , i + 30 }, &handle);
514
514
mutex_lock l (status_mu);
515
515
statuses[i] = status;
@@ -519,7 +519,7 @@ TEST_P(CachingManagerTest, ConcurrentDisjointRequests) {
519
519
// Check that all requests returned with an ok status.
520
520
for (int i = 0 ; i < 4 ; i++) {
521
521
mutex_lock l (status_mu);
522
- EXPECT_EQ (OkStatus (), statuses[i]);
522
+ EXPECT_EQ (absl:: OkStatus (), statuses[i]);
523
523
}
524
524
// Check that the available servable handles now includes all requested
525
525
// servables.
@@ -542,7 +542,7 @@ TEST_P(CachingManagerTest, ConcurrentDisjointRequests) {
542
542
543
543
TEST_P (CachingManagerTest, ConcurrentIntersectingRequests) {
544
544
mutex status_mu;
545
- std::vector<Status> statuses (8 );
545
+ std::vector<absl:: Status> statuses (8 );
546
546
{
547
547
ThreadPoolExecutor request_executor (Env::Default (), " GetHandles" ,
548
548
kNumThreads );
@@ -552,7 +552,7 @@ TEST_P(CachingManagerTest, ConcurrentIntersectingRequests) {
552
552
const ServableId id = {kServableName , version};
553
553
request_executor.Schedule ([this , i, id, &statuses, &status_mu]() {
554
554
ServableHandle<string> handle;
555
- const Status status =
555
+ const absl:: Status status =
556
556
manager_->GetServableHandle (ServableRequest::FromId (id), &handle);
557
557
mutex_lock l (status_mu);
558
558
statuses[i] = status;
@@ -562,7 +562,7 @@ TEST_P(CachingManagerTest, ConcurrentIntersectingRequests) {
562
562
// Check that all requests returned with an ok status.
563
563
for (int i = 0 ; i < 8 ; i++) {
564
564
mutex_lock l (status_mu);
565
- EXPECT_EQ (OkStatus (), statuses[i]);
565
+ EXPECT_EQ (absl:: OkStatus (), statuses[i]);
566
566
}
567
567
// Check that the available servable handles now includes all requested
568
568
// servables.
0 commit comments